Skip to content

Commit

Permalink
fix(schema): fix router-options type
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm committed Dec 7, 2024
1 parent 204e241 commit d2a8f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schema/src/types/router.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit d2a8f99

Please sign in to comment.