Skip to content

Commit

Permalink
Tidy custom Koa types (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jan 27, 2021
1 parent f4c4a0f commit 56fe586
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-tips-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**template/koa-rest-api:** Tidy custom Koa types
5 changes: 5 additions & 0 deletions .changeset/young-radios-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**template:** seek-jobs/gantry v1.2.11
7 changes: 3 additions & 4 deletions template/koa-rest-api/src/types/koa.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import Koa from 'koa';
import type Koa from 'koa';
import type { RequestLogging } from 'seek-koala';

export type Context = Koa.ParameterizedContext<State>;

export type Middleware = Koa.Middleware<State>;

export interface State {
skipRequestLogging?: boolean;
}
export type State = RequestLogging.State;

0 comments on commit 56fe586

Please sign in to comment.