From df87597098460fccea681890ee6e065ba8dc6ee9 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Tue, 22 Dec 2020 12:32:23 +0100 Subject: [PATCH] fix(types): add missing `redirect` overload to `Context` interface (#8530) --- packages/types/app/index.d.ts | 1 + 1 file changed, 1 insertion(+) 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']