]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(types): migrate global types to packages-private (#11904)
authorTycho <jh.leong@outlook.com>
Mon, 16 Sep 2024 02:30:58 +0000 (10:30 +0800)
committerGitHub <noreply@github.com>
Mon, 16 Sep 2024 02:30:58 +0000 (10:30 +0800)
packages-private/global.d.ts [new file with mode: 0644]
packages/global.d.ts

diff --git a/packages-private/global.d.ts b/packages-private/global.d.ts
new file mode 100644 (file)
index 0000000..ebc2367
--- /dev/null
@@ -0,0 +1,8 @@
+/// <reference types="vite/client" />
+
+// Global compile-time constants
+declare var __COMMIT__: string
+
+declare module 'file-saver' {
+  export function saveAs(blob: any, name: any): void
+}
index 79b551713845fed1d0c81921f6197eafdcbc522e..8b627d2e556215791bc00065ff7257ecdad31577 100644 (file)
@@ -1,5 +1,3 @@
-/// <reference types="vite/client" />
-
 // 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<T>(
     root: T,