Files
DefinitelyTyped/types/del/index.d.ts

23 lines
704 B
TypeScript

// Type definitions for del 3.0
// Project: https://github.com/sindresorhus/del
// Definitions by: Asana <https://asana.com>
// Aya Morisawa <https://github.com/AyaMorisawa>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import glob = require("glob");
declare function del(patterns: string | string[], options?: del.Options): Promise<string[]>;
declare namespace del {
function sync(patterns: string | string[], options?: Options): string[];
interface Options extends glob.IOptions {
force?: boolean;
dryRun?: boolean;
concurrency?: number;
}
}
export = del;