mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(types): add missing redirect
overload to Context
interface (#8530)
This commit is contained in:
parent
b64ee2c8ef
commit
df87597098
1
packages/types/app/index.d.ts
vendored
1
packages/types/app/index.d.ts
vendored
@ -47,6 +47,7 @@ export interface Context {
|
||||
redirect(status: number, path: string, query?: Route['query']): void
|
||||
redirect(path: string, query?: Route['query']): void
|
||||
redirect(location: Location): void
|
||||
redirect(status: number, location: Location): void
|
||||
ssrContext?: {
|
||||
req: Context['req']
|
||||
res: Context['res']
|
||||
|
Loading…
Reference in New Issue
Block a user