style: format style

This commit is contained in:
xiaoxian521
2021-07-20 17:16:42 +08:00
parent a5172c9476
commit 9bb4f34707
9 changed files with 105 additions and 99 deletions

23
types/index.d.ts vendored
View File

@@ -1,26 +1,27 @@
declare interface Fn<T = any, R = T> {
(...arg: T[]): R
(...arg: T[]): R;
}
declare interface PromiseFn<T = any, R = T> {
(...arg: T[]): Promise<R>
(...arg: T[]): Promise<R>;
}
declare type RefType<T> = T | null
declare type RefType<T> = T | null;
declare type LabelValueOptions = {
label: string
value: any
}[]
label: string;
value: any;
}[];
declare type EmitType = (event: string, ...args: any[]) => void
declare type EmitType = (event: string, ...args: any[]) => void;
declare type TargetContext = '_self' | '_blank'
declare type TargetContext = "_self" | "_blank";
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
$el: T
$el: T;
}
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
ComponentElRef<T> | null;
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;