Created
October 23, 2019 21:10
-
-
Save medfreeman/e875da715e5179a44ae1ef55b6852c4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/node_modules/@types/koa/index.d.ts b/node_modules/@types/koa/index.d.ts | |
| index df6d5f8..64557e0 100644 | |
| --- a/node_modules/@types/koa/index.d.ts | |
| +++ b/node_modules/@types/koa/index.d.ts | |
| @@ -310,7 +310,7 @@ declare interface ContextDelegatedResponse { | |
| /** | |
| * Get/Set response body. | |
| */ | |
| - body: any; | |
| + body: unknown; | |
| /** | |
| * Return parsed response Content-Length when present. | |
| @@ -544,8 +544,9 @@ declare namespace Application { | |
| type Middleware< | |
| StateT = DefaultState, | |
| - CustomT = DefaultContext | |
| - > = compose.Middleware<ParameterizedContext<StateT, CustomT>>; | |
| + CustomT = DefaultContext, | |
| + ThisT = any | |
| + > = compose.Middleware<ParameterizedContext<StateT, CustomT>, ThisT>; | |
| interface BaseRequest extends ContextDelegatedRequest { | |
| /** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment