diff --git a/types/CheapWatch.d.ts b/types/CheapWatch.d.ts index 287f6c8..3b978c9 100644 --- a/types/CheapWatch.d.ts +++ b/types/CheapWatch.d.ts @@ -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; + paths: Map; constructor(data: object); init(): Promise; close(): void; } interface Filter { - (file: { path: string; stats: fs.Stats }): Promise; + (file: { path: string; stats: Stats }): Promise; }