mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
chore: structure change
This commit is contained in:
26
types/index.d.ts
vendored
Normal file
26
types/index.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
}[]
|
||||
|
||||
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>
|
||||
Reference in New Issue
Block a user