-
Notifications
You must be signed in to change notification settings - Fork 74
/
env.d.ts
43 lines (41 loc) · 946 Bytes
/
env.d.ts
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { MessageApiInjection } from 'naive-ui/lib/message/src/MessageProvider';
/// <reference types="vite/client" />
// naive-ui组件库全局类型声明 给编辑器提供更好的类型提示
export * from 'naive-ui/volar';
export { };
type localValue = 'zh-cn' | 'en';
declare global {
interface Window {
$message: MessageApiInjection;
}
interface ImportMeta {
env: Record<string, string>
}
}
declare module 'vue' {
export interface Window {
$message: MessageApiInjection;
}
}
// 任意键值对对象类型
export type AnyObject = {
[key: string]: any;
};
declare module 'rgbaster' {
interface Opts {
ignore?: string[];
scale?: number;
skipTransparentPixels?: boolean;
}
export default function (src: string, opts?: Opts): Promise<{
color: string;
count: number;
}[]>;
export { };
};
// audio data
export type AudioIndexedData = {
id: number;
name: string;
blob:Blob;
}