element-plus/typings/vue-shim.d.ts

20 lines
467 B
TypeScript
Raw Normal View History

2020-07-21 20:23:49 +08:00
declare module '*.vue' {
2020-09-21 15:39:53 +08:00
import { defineComponent } from 'vue'
const component: ReturnType<typeof defineComponent>
export default component
2020-07-21 20:23:49 +08:00
}
declare type Nullable<T> = T | null;
declare type CustomizedHTMLElement<T> = HTMLElement & T
declare type Indexable<T> = {
[key: string]: T
}
declare type Hash<T> = Indexable<T>
declare type TimeoutHandle = ReturnType<typeof global.setTimeout>
2020-10-30 23:26:33 +08:00
declare type ComponentSize = 'large' | 'medium' | 'small' | 'mini'