From 3fd4848adcfedc6fcb10fc032dc74af3405e2d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20B=C5=82a=C5=BCejewicz=20=28Peter=20Blazejewicz=29?= Date: Tue, 7 Jul 2020 01:47:24 +0200 Subject: [PATCH] feat(glob): export glob api alias (#45195) This is beign reported by Danger CI tests now as missing export surface for the module. No existing api was changed. Reference: https://git.io/Jf6lU Thanks! --- types/glob/glob-tests.ts | 2 ++ types/glob/index.d.ts | 1 + 2 files changed, 3 insertions(+) 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;