mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
496 B
TypeScript
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;
|