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

18 lines
399 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>