huangyinfeng
2024-09-12 67287bef3ec9abbaab297ad732ae56cbcfc0f2e7
提交 | 用户 | age
a98835 1 declare interface Fn<T = any, R = T> {
V 2   (...arg: T[]): R;
3 }
4
5 declare interface PromiseFn<T = any, R = T> {
6   (...arg: T[]): Promise<R>;
7 }
8
9 declare type RefType<T> = T | null;
10
11 declare type LabelValueOptions = {
12   label: string;
13   value: any;
7dce50 14   [key: string]: string | number | boolean;
a98835 15 }[];
V 16
30b3ee 17 declare type EmitType = ReturnType<typeof defineEmits>;
a98835 18
V 19 declare type TargetContext = '_self' | '_blank';
20
21 declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
22   $el: T;
23 }
24
25 declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
26
27 declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;