From: Tycho Date: Mon, 16 Sep 2024 02:30:58 +0000 (+0800) Subject: chore(types): migrate global types to packages-private (#11904) X-Git-Tag: v3.5.6~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc3ddca9d09170aeb79043543bb8bbafa9e9e39b;p=thirdparty%2Fvuejs%2Fcore.git chore(types): migrate global types to packages-private (#11904) --- 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,