Browse Source

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

master
Luke Edwards 2 years ago committed by GitHub
parent
commit
e2484101e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      types/CheapWatch.d.ts

8
types/CheapWatch.d.ts vendored

@ -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>;
}

Loading…
Cancel
Save