Skip to content

Commit

Permalink
Correct a TypeScript type relating to Koa context.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Jun 28, 2022
1 parent 9867bcc commit 2643151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Patch

- Updated dev dependencies.
- Corrected the TypeScript type for the Koa context `ctx` parameter for the Koa middleware created by the function `graphqlUploadKoa`, from `import("koa").Context` to `import("koa").ParameterizedContext`.

## 15.0.1

Expand Down
2 changes: 1 addition & 1 deletion graphqlUploadKoa.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function graphqlUploadKoa({
* using {@linkcode processRequest}, ignoring non multipart requests. It sets
* the request `body` to be similar to a conventional GraphQL POST request for
* following GraphQL middleware to consume.
* @param {import("koa").Context} ctx
* @param {import("koa").ParameterizedContext} ctx
* @param {() => Promise<unknown>} next
*/
async function graphqlUploadKoaMiddleware(ctx, next) {
Expand Down

0 comments on commit 2643151

Please sign in to comment.