add typescript declaration file
This commit is contained in:
parent
f8f4697cef
commit
9afd86d50d
1 changed files with 17 additions and 0 deletions
17
types/CheapWatch.d.ts
vendored
Normal file
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>;
|
||||
}
|
Loading…
Reference in a new issue