Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit bc3ddca

Browse files
authored
chore(types): migrate global types to packages-private (#11904)
1 parent 1bad606 commit bc3ddca

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages-private/global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/// <reference types="vite/client" />
2+
3+
// Global compile-time constants
4+
declare var __COMMIT__: string
5+
6+
declare module 'file-saver' {
7+
export function saveAs(blob: any, name: any): void
8+
}

packages/global.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference types="vite/client" />
2-
31
// Global compile-time constants
42
declare var __DEV__: boolean
53
declare var __TEST__: boolean
@@ -9,7 +7,6 @@ declare var __ESM_BUNDLER__: boolean
97
declare var __ESM_BROWSER__: boolean
108
declare var __CJS__: boolean
119
declare var __SSR__: boolean
12-
declare var __COMMIT__: string
1310
declare var __VERSION__: string
1411
declare var __COMPAT__: boolean
1512

@@ -21,10 +18,6 @@ declare var __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__: boolean
2118

2219
declare module '*.vue' {}
2320

24-
declare module 'file-saver' {
25-
export function saveAs(blob: any, name: any): void
26-
}
27-
2821
declare module 'estree-walker' {
2922
export function walk<T>(
3023
root: T,

0 commit comments

Comments
 (0)