-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathenv.d.ts
More file actions
28 lines (23 loc) · 772 Bytes
/
Copy pathenv.d.ts
File metadata and controls
28 lines (23 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// <reference types="vite/client" />
/// <reference types="chrome" />
declare module "*.vue" {
import type { DefineComponent } from "vue";
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
const component: DefineComponent<{}, {}, any>;
export default component;
}
// Vite ?worker 导入
declare module "*?worker" {
const workerConstructor: {
new (options?: { name?: string }): Worker;
};
export default workerConstructor;
}
// Monaco 深路径 editor.api / json.contribution 的类型通过 tsconfig paths
// 指向各自的 .d.ts;json 贡献的 .d.ts 为 export {},代码里用类型断言取 jsonDefaults。
declare global {
interface Window {
MonacoEnvironment?: import("monaco-editor").Environment;
}
}
export {};