mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
options and callback are optional
This commit is contained in:
Vendored
+7
-4
@@ -1,4 +1,4 @@
|
||||
// Type definitions for del
|
||||
// Type definitions for del v1.2.0
|
||||
// Project: https://github.com/sindresorhus/del
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -8,13 +8,16 @@
|
||||
declare module "del" {
|
||||
import glob = require("glob");
|
||||
|
||||
function Del(pattern: string): void;
|
||||
function Del(pattern: string, options: Del.Options): void;
|
||||
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[]): void;
|
||||
function Del(patterns: string[], options: Del.Options): 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;
|
||||
@@ -25,4 +28,4 @@ declare module "del" {
|
||||
}
|
||||
|
||||
export = Del;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user