fix(schema): change redirect type for NuxtPage type (#21713)

This commit is contained in:
Portnoy Vladislav 2023-06-23 12:09:35 +03:00 committed by GitHub
parent 7736fb2b0b
commit 56eb15f83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[]
}