Add util.promisify types for glob (#23037)

* Add util.promisify types for glob

* Add util.promisify types for glob
This commit is contained in:
Admin Localnet
2018-01-23 20:58:23 +01:00
committed by Andy
parent 8ecb1305ea
commit 7fd0895663

View File

@@ -14,6 +14,8 @@ declare function G(pattern: string, cb: (err: Error | null, matches: string[]) =
declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): void;
declare namespace G {
function __promisify__(pattern: string, options?: IOptions): Promise<string[]>;
function sync(pattern: string, options?: IOptions): string[];
function hasMagic(pattern: string, options?: IOptions): boolean;