readme更新,删除无用文件

This commit is contained in:
Ah jung
2021-07-15 15:18:00 +08:00
parent 304e7053d7
commit 8fd663e0e5
19 changed files with 143 additions and 279 deletions

22
types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,22 @@
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 EmitType = (event: string, ...args: any[]) => void;
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>;