fix: Typecheck and loop dependency problem repair
This commit is contained in:
18
packages/types/global.d.ts
vendored
18
packages/types/global.d.ts
vendored
@@ -5,3 +5,21 @@ import 'vue-router';
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta extends IRouteMeta {}
|
||||
}
|
||||
|
||||
declare global {
|
||||
// interface Window {
|
||||
const __VBEN_ADMIN_METADATA__: {
|
||||
authorEmail: string;
|
||||
authorName: string;
|
||||
authorUrl: string;
|
||||
buildTime: string;
|
||||
dependencies: Record<string, string>;
|
||||
description: string;
|
||||
devDependencies: Record<string, string>;
|
||||
homepage: string;
|
||||
license: string;
|
||||
repositoryUrl: string;
|
||||
version: string;
|
||||
};
|
||||
// }
|
||||
}
|
||||
|
@@ -28,9 +28,6 @@
|
||||
},
|
||||
"./global": {
|
||||
"types": "./global.d.ts"
|
||||
},
|
||||
"./window": {
|
||||
"types": "./window.d.ts"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
|
19
packages/types/window.d.ts
vendored
19
packages/types/window.d.ts
vendored
@@ -1,19 +0,0 @@
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
// interface Window {
|
||||
const __VBEN_ADMIN_METADATA__: {
|
||||
authorEmail: string;
|
||||
authorName: string;
|
||||
authorUrl: string;
|
||||
buildTime: string;
|
||||
dependencies: Record<string, string>;
|
||||
description: string;
|
||||
devDependencies: Record<string, string>;
|
||||
homepage: string;
|
||||
license: string;
|
||||
repositoryUrl: string;
|
||||
version: string;
|
||||
};
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user