fix(schema): allow routerOptions.history to return null (#30192)

This commit is contained in:
wzc520pyfm 2024-12-08 04:11:51 +08:00 committed by Daniel Roe
parent 1d8f2c39f4
commit 74d8603149
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -1,7 +1,7 @@
import type { RouterHistory, RouterOptions as _RouterOptions } from 'vue-router'
export type RouterOptions = Partial<Omit<_RouterOptions, 'history' | 'routes'>> & {
history?: (baseURL?: string) => RouterHistory
history?: (baseURL?: string) => RouterHistory | null | undefined
routes?: (_routes: _RouterOptions['routes']) => _RouterOptions['routes'] | Promise<_RouterOptions['routes']>
hashMode?: boolean
scrollBehaviorType?: 'smooth' | 'auto'