npm install --save @types/empty-dir
This package contains type definitions for empty-dir (https://github.com/gulpjs/empty-dir).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/empty-dir.
/// <reference types="node" />
export = emptyDir;
declare function emptyDir(
dir: string | readonly string[],
cb: (err: NodeJS.ErrnoException, isEmpty: boolean) => void,
): void;
declare function emptyDir(
dir: string | readonly string[],
filter: (path: string) => boolean,
cb: (err: NodeJS.ErrnoException, isEmpty: boolean) => void,
): void;
declare function emptyDir(
dir: string | readonly string[],
filter?: (path: string) => boolean,
): Promise<boolean>;
declare namespace emptyDir {
function sync(dir: string | readonly string[], filter?: (path: string) => boolean): boolean;
}
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
These definitions were written by BendingBender, and Daniel Cassidy.