diff --git a/packages/schema/src/types/router.ts b/packages/schema/src/types/router.ts index c7cb0ce850..950a46df32 100644 --- a/packages/schema/src/types/router.ts +++ b/packages/schema/src/types/router.ts @@ -1,7 +1,7 @@ import type { RouterHistory, RouterOptions as _RouterOptions } from 'vue-router' export type RouterOptions = Partial> & { - history?: (baseURL?: string) => RouterHistory + history?: (baseURL?: string) => RouterHistory | null | undefined routes?: (_routes: _RouterOptions['routes']) => _RouterOptions['routes'] | Promise<_RouterOptions['routes']> hashMode?: boolean scrollBehaviorType?: 'smooth' | 'auto'