From 39f4bc5f4ea901cbabb1d5854d9fbf3591d5d314 Mon Sep 17 00:00:00 2001 From: samchungy Date: Fri, 11 Aug 2023 14:38:52 +1000 Subject: [PATCH] fix lint --- template/koa-rest-api/src/framework/server.ts | 2 +- template/koa-rest-api/src/testing/server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/koa-rest-api/src/framework/server.ts b/template/koa-rest-api/src/framework/server.ts index 5d22468ce..aeb7bfa6e 100644 --- a/template/koa-rest-api/src/framework/server.ts +++ b/template/koa-rest-api/src/framework/server.ts @@ -36,7 +36,7 @@ const version = VersionMiddleware.create({ }); export const createApp = ( - ...middleware: Koa.Middleware[] + ...middleware: Array> ) => new Koa() // TODO: consider using a middleware that adds secure HTTP headers. diff --git a/template/koa-rest-api/src/testing/server.ts b/template/koa-rest-api/src/testing/server.ts index ee124cd7a..9e089f440 100644 --- a/template/koa-rest-api/src/testing/server.ts +++ b/template/koa-rest-api/src/testing/server.ts @@ -14,7 +14,7 @@ export const agentFromApp = (app: Koa) => * Create a new SuperTest agent from a set of Koa middleware. */ export const agentFromMiddleware = ( - ...middleware: Koa.Middleware[] + ...middleware: Array> ) => { const app = createApp(...middleware);