diff --git a/types/glob/glob-tests.ts b/types/glob/glob-tests.ts index 01f74acf8d..75a87d3726 100644 --- a/types/glob/glob-tests.ts +++ b/types/glob/glob-tests.ts @@ -1,5 +1,7 @@ import glob = require("glob"); const Glob = glob.Glob; +// ExpectType glob +const globAlias = glob.glob; (() => { const pattern = "test/a/**/[cg]/../[cg]"; diff --git a/types/glob/index.d.ts b/types/glob/index.d.ts index a0bf99f19d..aabac3ac7b 100644 --- a/types/glob/index.d.ts +++ b/types/glob/index.d.ts @@ -21,6 +21,7 @@ declare namespace G { function hasMagic(pattern: string, options?: IOptions): boolean; + let glob: typeof G; let Glob: IGlobStatic; let GlobSync: IGlobSyncStatic;