clddup
2024-07-19 baf406e7e271ac90faa3aec31ceb44715331d9d0
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
declare interface Fn<T = any, R = T> {
  (...arg: T[]): R;
}
 
declare interface PromiseFn<T = any, R = T> {
  (...arg: T[]): Promise<R>;
}
 
declare type RefType<T> = T | null;
 
declare type LabelValueOptions = {
  label: string;
  value: any;
  [key: string]: string | number | boolean;
}[];
 
declare type EmitType = ReturnType<typeof defineEmits>;
 
declare type TargetContext = '_self' | '_blank';
 
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
  $el: T;
}
 
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
 
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;