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

22 lines
508 B
TypeScript
Raw Normal View History

2020-07-21 20:23:49 +08:00
declare module '*.vue' {
import { App, defineComponent } from 'vue'
const component: ReturnType<typeof defineComponent> & {
install(app: App): void
}
2020-09-21 15:39:53 +08:00
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'