1
Fork 0

fix(types): use `type` import (#5)

This commit is contained in:
Luke Edwards 2020-11-18 08:49:51 -08:00 committed by GitHub
parent 3cd7f48ff6
commit e2484101e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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