DefinitelyTyped/types/delete-empty/index.d.ts
2018-09-05 12:14:55 +01:00

14 lines
496 B
TypeScript

// Type definitions for delete-empty 2.0
// Project: https://github.com/jonschlinkert/delete-empty
// Definitions by: Alorel <https://github.com/Alorel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function deleteEmpty(dir: string): Promise<string[]>;
declare function deleteEmpty(dir: string, cb: (err: Error | undefined | null, deleted: string[]) => void): void;
declare namespace deleteEmpty {
function sync(dir: string): string[];
}
export = deleteEmpty;