fix(types): add missing redirect overload to Context interface (#8530)

This commit is contained in:
Flo Edelmann 2020-12-22 12:32:23 +01:00 committed by GitHub
parent b64ee2c8ef
commit df87597098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']