mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:13:40 +08:00
fix(types): fix routing type error #145
This commit is contained in:
@@ -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>);
|
||||
|
Reference in New Issue
Block a user