Skip to content

Commit a41aff7

Browse files
jh-leongabdullah-wn
authored andcommitted
chore(types): migrate global types to packages-private (vuejs#11904)
1 parent e04951a commit a41aff7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Diff for: packages-private/global.d.ts

+8
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+
}

Diff for: packages/global.d.ts

-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ declare var __ESM_BUNDLER__: boolean
77
declare var __ESM_BROWSER__: boolean
88
declare var __CJS__: boolean
99
declare var __SSR__: boolean
10-
declare var __COMMIT__: string
1110
declare var __VERSION__: string
1211
declare var __COMPAT__: boolean
1312

@@ -19,10 +18,6 @@ declare var __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__: boolean
1918

2019
declare module '*.vue' {}
2120

22-
declare module 'file-saver' {
23-
export function saveAs(blob: any, name: any): void
24-
}
25-
2621
declare module 'estree-walker' {
2722
export function walk<T>(
2823
root: T,

0 commit comments

Comments
 (0)