Skip to content

Instantly share code, notes, and snippets.

@medfreeman
Created October 23, 2019 21:10
Show Gist options
  • Select an option

  • Save medfreeman/e875da715e5179a44ae1ef55b6852c4c to your computer and use it in GitHub Desktop.

Select an option

Save medfreeman/e875da715e5179a44ae1ef55b6852c4c to your computer and use it in GitHub Desktop.
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