From 2f341e0c798be97a8bb1fb00ee98feda95db7dce Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 6 Aug 2018 17:27:14 -0700 Subject: [PATCH] klaw/v1: Minor cleanup --- types/klaw/v1/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/klaw/v1/index.d.ts b/types/klaw/v1/index.d.ts index 74939f30c2..f65da7af6f 100644 --- a/types/klaw/v1/index.d.ts +++ b/types/klaw/v1/index.d.ts @@ -5,7 +5,7 @@ /// -import * as fs from "fs"; +import { Stats } from "fs"; import { Readable, ReadableOptions } from 'stream'; declare function K(root: string, options?: K.Options): K.Walker; @@ -13,16 +13,16 @@ declare function K(root: string, options?: K.Options): K.Walker; declare namespace K { interface Item { path: string; - stats: fs.Stats; + stats: Stats; } type QueueMethod = "shift" | "pop"; interface Options extends ReadableOptions { queueMethod?: QueueMethod; - pathSorter?: (pathA: string, pathB: string) => number; + pathSorter?(pathA: string, pathB: string): number; fs?: any; // fs or mock-fs - filter?: (path: string) => boolean; + filter?(path: string): boolean; } type Event = "close" | "data" | "end" | "readable" | "error";