fix(types): fix routing type error #145

This commit is contained in:
vben
2020-12-23 21:51:22 +08:00
parent 7db0c5c49f
commit b6e5c3f625
14 changed files with 20 additions and 13 deletions

View File

@@ -1,3 +1,6 @@
import { defineComponent } from 'vue';
export type Component = ReturnType<typeof defineComponent>;
export type Component<T extends any = any> =
| ReturnType<typeof defineComponent>
| (() => Promise<typeof import('*.vue')>)
| (() => Promise<T>);