Files
DefinitelyTyped/del/del.d.ts
Phips Peter d54b01d569 Adding a type definition for del
This is useful for people who want to write their gulpfile in
TypeScript.
2015-01-28 13:26:37 -08:00

28 lines
989 B
TypeScript

// Type definitions for del
// Project: https://github.com/sindresorhus/del
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../glob/glob.d.ts"/>
declare module "del" {
import glob = require("glob");
function Del(pattern: string, callback: (err: Error, deletedFiles: string[]) => any): void;
function Del(pattern: string, options: Del.Options, callback: (err: Error, deletedFiles: string[]) => any): void;
function Del(patterns: string[], callback: (err: Error, deletedFiles: string[]) => any): void;
function Del(patterns: string[], options: Del.Options, callback: (err: Error, deletedFiles: string[]) => any): void;
module Del {
function sync(pattern: string, options?: Options): void;
function sync(patterns: string[], options?: Options): void;
interface Options extends glob.IOptions {
force?: boolean
}
}
export = Del;
}