Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samchungy committed Aug 11, 2023
1 parent bbde91e commit 39f4bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/koa-rest-api/src/framework/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const version = VersionMiddleware.create({
});

export const createApp = <State, Context>(
...middleware: Koa.Middleware<State, Context>[]
...middleware: Array<Koa.Middleware<State, Context>>
) =>
new Koa()
// TODO: consider using a middleware that adds secure HTTP headers.
Expand Down
2 changes: 1 addition & 1 deletion template/koa-rest-api/src/testing/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const agentFromApp = <State, Context>(app: Koa<State, Context>) =>
* Create a new SuperTest agent from a set of Koa middleware.
*/
export const agentFromMiddleware = <State, Context>(
...middleware: Koa.Middleware<State, Context>[]
...middleware: Array<Koa.Middleware<State, Context>>
) => {
const app = createApp(...middleware);

Expand Down

0 comments on commit 39f4bc5

Please sign in to comment.