From 264315174527ed2588674e245b82bb8c4d456c6b Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Tue, 28 Jun 2022 11:05:26 +1000 Subject: [PATCH] Correct a TypeScript type relating to Koa context. --- changelog.md | 1 + graphqlUploadKoa.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 6129b19..bcedf3e 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/graphqlUploadKoa.js b/graphqlUploadKoa.js index 654fc67..fbb2839 100644 --- a/graphqlUploadKoa.js +++ b/graphqlUploadKoa.js @@ -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} next */ async function graphqlUploadKoaMiddleware(ctx, next) {