1
Fork 0

add typescript declaration file

This commit is contained in:
Conduitry 2018-11-13 07:16:46 -05:00
parent f8f4697cef
commit 9afd86d50d

17
types/CheapWatch.d.ts vendored Normal file
View file

@ -0,0 +1,17 @@
import * as EventEmitter from 'events';
import * as fs from 'fs';
export default class CheapWatch extends EventEmitter {
dir: string;
filter?: Filter;
watch: boolean;
debounce: number;
paths: Map<string, fs.Stats>;
constructor(data: object);
init(): Promise<void>;
close(): void;
}
interface Filter {
(file: { path: string; stats: fs.Stats }): Promise<boolean>;
}