add typescript declaration file

This commit is contained in:
Conduitry 2018-11-13 07:16:46 -05:00
父節點 f8f4697cef
當前提交 9afd86d50d
共有 1 個文件被更改,包括 17 次插入0 次删除

17
types/CheapWatch.d.ts vendored Normal 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>;
}