mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Add util.promisify types for glob (#23037)
* Add util.promisify types for glob * Add util.promisify types for glob
This commit is contained in:
2
types/glob/index.d.ts
vendored
2
types/glob/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user