diff --git a/packages/types/app/index.d.ts b/packages/types/app/index.d.ts index f07d7bfbc7..2484383a08 100644 --- a/packages/types/app/index.d.ts +++ b/packages/types/app/index.d.ts @@ -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']