Skip to content

Commit

Permalink
fix(schema): change redirect type for NuxtPage type (#21713)
Browse files Browse the repository at this point in the history
  • Loading branch information
silencerspirit committed Jun 23, 2023
1 parent 7736fb2 commit 56eb15f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schema/src/types/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -25,7 +26,7 @@ export type NuxtPage = {
file?: string
meta?: Record<string, any>
alias?: string[] | string
redirect?: string
redirect?: RouteLocationRaw
children?: NuxtPage[]
}

Expand Down

0 comments on commit 56eb15f

Please sign in to comment.