gohttpdUi/src/types/global.d.ts

16 lines
404 B
TypeScript
Raw Normal View History

2021-12-11 20:50:05 +08:00
declare interface Fn<T = any> {
(...arg: T[]): T
}
declare type Nullable<T> = T | null
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
declare type ElememtPlusSzie = 'medium' | 'small' | 'mini'
declare type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'
declare type Recordable<T = any> = Record<string, T>
2021-12-12 09:34:02 +08:00
declare type ComponentRef<T> = InstanceType<T>