Installation
npm install --save @types/klaw-sync
Summary
This package contains type definitions for klaw-sync (https://github.com/manidlou/node-klaw-sync).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/klaw-sync.
import * as fs from "fs";
declare namespace klawSync {
interface Item {
path: string;
stats: fs.Stats;
}
type Filter = (item: Item) => boolean;
interface Options {
nodir?: boolean | undefined;
nofile?: boolean | undefined;
depthLimit?: number | undefined;
fs?: {
readdirSync(path: string): string[];
statSync(path: string): fs.Stats;
} | undefined;
filter?: Filter | undefined;
traverseAll?: boolean | undefined;
}
}
declare function klawSync(
root: string,
options?: klawSync.Options,
): readonly klawSync.Item[];
export = klawSync;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/node
Credits
These definitions were written by Brendan Forster.