From e2484101e8aba6fa0d3602bd9fd615fa4d94782f Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Wed, 18 Nov 2020 08:49:51 -0800 Subject: [PATCH] fix(types): use `type` import (#5) --- types/CheapWatch.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }