Skip to content

Commit 2643151

Browse files
committed
Correct a TypeScript type relating to Koa context.
1 parent 9867bcc commit 2643151

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Patch
66

77
- Updated dev dependencies.
8+
- 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`.
89

910
## 15.0.1
1011

graphqlUploadKoa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function graphqlUploadKoa({
4242
* using {@linkcode processRequest}, ignoring non multipart requests. It sets
4343
* the request `body` to be similar to a conventional GraphQL POST request for
4444
* following GraphQL middleware to consume.
45-
* @param {import("koa").Context} ctx
45+
* @param {import("koa").ParameterizedContext} ctx
4646
* @param {() => Promise<unknown>} next
4747
*/
4848
async function graphqlUploadKoaMiddleware(ctx, next) {

0 commit comments

Comments
 (0)