element-plus/packages/utils/types.ts
2022-02-09 16:59:08 +08:00

9 lines
236 B
TypeScript

export type AnyFunction<T> = (...args: any[]) => T
export type PartialReturnType<T extends (...args: unknown[]) => unknown> =
Partial<ReturnType<T>>
export type Nullable<T> = T | null
export type RefElement = Nullable<HTMLElement>