mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(schema): change redirect
type for NuxtPage
type (#21713)
This commit is contained in:
parent
7736fb2b0b
commit
56eb15f83c
@ -11,6 +11,7 @@ import type { Nitro, NitroConfig } from 'nitropack'
|
||||
import type { Component, ComponentsOptions } from './components'
|
||||
import type { NuxtCompatibility, NuxtCompatibilityIssues, ViteConfig } from '..'
|
||||
import type { Schema, SchemaDefinition } from 'untyped'
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
|
||||
export type HookResult = Promise<void> | void
|
||||
|
||||
@ -25,7 +26,7 @@ export type NuxtPage = {
|
||||
file?: string
|
||||
meta?: Record<string, any>
|
||||
alias?: string[] | string
|
||||
redirect?: string
|
||||
redirect?: RouteLocationRaw
|
||||
children?: NuxtPage[]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user