Skip to content

Commit

Permalink
types: 修改类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Sep 25, 2023
1 parent 9bcc176 commit 4760733
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Component<T = any> =
| (() => Promise<T>)

declare global {
declare interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
declare interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta' | 'children'> {
name: string
meta: RouteMetaCustom
component?: Component | string
Expand All @@ -66,7 +66,8 @@ declare global {
fullPath?: string
}

declare interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
declare interface AppCustomRouteRecordRaw
extends Omit<RouteRecordRaw, 'meta' | 'component' | 'children'> {
name: string
meta: RouteMetaCustom
component: string
Expand Down

0 comments on commit 4760733

Please sign in to comment.