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 GitHub
parent 204e241601
commit 41eccbc4fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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'