From 56fe5863b88ee69f179966c7227ec278017ce86a Mon Sep 17 00:00:00 2001 From: Ryan Ling Date: Thu, 28 Jan 2021 08:59:12 +1100 Subject: [PATCH] Tidy custom Koa types (#336) --- .changeset/quick-tips-doubt.md | 5 +++++ .changeset/young-radios-serve.md | 5 +++++ template/koa-rest-api/src/types/koa.ts | 7 +++---- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changeset/quick-tips-doubt.md create mode 100644 .changeset/young-radios-serve.md diff --git a/.changeset/quick-tips-doubt.md b/.changeset/quick-tips-doubt.md new file mode 100644 index 000000000..dc6d1ade8 --- /dev/null +++ b/.changeset/quick-tips-doubt.md @@ -0,0 +1,5 @@ +--- +'skuba': patch +--- + +**template/koa-rest-api:** Tidy custom Koa types diff --git a/.changeset/young-radios-serve.md b/.changeset/young-radios-serve.md new file mode 100644 index 000000000..d7abf5d82 --- /dev/null +++ b/.changeset/young-radios-serve.md @@ -0,0 +1,5 @@ +--- +'skuba': patch +--- + +**template:** seek-jobs/gantry v1.2.11 diff --git a/template/koa-rest-api/src/types/koa.ts b/template/koa-rest-api/src/types/koa.ts index 8a43cb7dd..0fa3abe46 100644 --- a/template/koa-rest-api/src/types/koa.ts +++ b/template/koa-rest-api/src/types/koa.ts @@ -1,9 +1,8 @@ -import Koa from 'koa'; +import type Koa from 'koa'; +import type { RequestLogging } from 'seek-koala'; export type Context = Koa.ParameterizedContext; export type Middleware = Koa.Middleware; -export interface State { - skipRequestLogging?: boolean; -} +export type State = RequestLogging.State;