vft 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/global.d.ts +55 -0
- package/package.json +1 -1
package/global.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { VftAvatar, VftEmpty, VftException, VftIcon, VftResult } from '@vft-ui/components';
|
|
2
|
+
|
|
3
|
+
declare module '*.css';
|
|
4
|
+
declare module '*.less';
|
|
5
|
+
declare module '*.png';
|
|
6
|
+
declare module '*.gif';
|
|
7
|
+
declare module '*.svg';
|
|
8
|
+
|
|
9
|
+
declare module "*.png" {
|
|
10
|
+
const value: any;
|
|
11
|
+
export default value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {};
|
|
15
|
+
|
|
16
|
+
// GlobalComponents for Volar
|
|
17
|
+
declare module '@vue/runtime-core' {
|
|
18
|
+
export interface GlobalComponents {
|
|
19
|
+
VftDivider: typeof import('vft')['VftDivider']
|
|
20
|
+
VftIcon: typeof import('vft')['VftIcon']
|
|
21
|
+
VftAvatar: typeof import('vft')['VftAvatar']
|
|
22
|
+
VftEmpty: typeof import('vft')['VftEmpty']
|
|
23
|
+
VftResult: typeof import('vft')['VftResult']
|
|
24
|
+
VftException: typeof import('vft')['VftException']
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare global {
|
|
29
|
+
type AnyFunction<T> = (...args: any[]) => T;
|
|
30
|
+
type Nullable<T> = T | null;
|
|
31
|
+
type Recordable<T = any> = Record<string, T>;
|
|
32
|
+
type Numberish = number | string;
|
|
33
|
+
type TimeoutHandle = ReturnType<typeof setTimeout>;
|
|
34
|
+
type IntervalHandle = ReturnType<typeof setInterval>;
|
|
35
|
+
|
|
36
|
+
type DeepPartial<T> = {
|
|
37
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
38
|
+
};
|
|
39
|
+
type TargetContext = '_self' | '_blank';
|
|
40
|
+
type Theme = 'light' | 'dark';
|
|
41
|
+
|
|
42
|
+
interface ChangeEvent extends Event {
|
|
43
|
+
target: HTMLInputElement;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type ClassObjectType = Record<string, boolean>;
|
|
47
|
+
|
|
48
|
+
type ClassType = string | ClassObjectType | ClassType[];
|
|
49
|
+
|
|
50
|
+
type ModulesDefaultType = Record<string, {default: Record<string, any>}>;
|
|
51
|
+
|
|
52
|
+
interface Fn<T = any, R = T> {
|
|
53
|
+
(...arg: T[]): R;
|
|
54
|
+
}
|
|
55
|
+
}
|