From bc3ddca9d09170aeb79043543bb8bbafa9e9e39b Mon Sep 17 00:00:00 2001 From: Tycho Date: Mon, 16 Sep 2024 10:30:58 +0800 Subject: [PATCH] chore(types): migrate global types to packages-private (#11904) --- packages-private/global.d.ts | 8 ++++++++ packages/global.d.ts | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 packages-private/global.d.ts diff --git a/packages-private/global.d.ts b/packages-private/global.d.ts new file mode 100644 index 0000000000..ebc2367f39 --- /dev/null +++ b/packages-private/global.d.ts @@ -0,0 +1,8 @@ +/// + +// Global compile-time constants +declare var __COMMIT__: string + +declare module 'file-saver' { + export function saveAs(blob: any, name: any): void +} diff --git a/packages/global.d.ts b/packages/global.d.ts index 79b5517138..8b627d2e55 100644 --- a/packages/global.d.ts +++ b/packages/global.d.ts @@ -1,5 +1,3 @@ -/// - // Global compile-time constants declare var __DEV__: boolean declare var __TEST__: boolean @@ -9,7 +7,6 @@ declare var __ESM_BUNDLER__: boolean declare var __ESM_BROWSER__: boolean declare var __CJS__: boolean declare var __SSR__: boolean -declare var __COMMIT__: string declare var __VERSION__: string declare var __COMPAT__: boolean @@ -21,10 +18,6 @@ declare var __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__: boolean declare module '*.vue' {} -declare module 'file-saver' { - export function saveAs(blob: any, name: any): void -} - declare module 'estree-walker' { export function walk( root: T, -- 2.47.3