From 8bf9e87117d7f22581d84eb2f440f05a9c34e72b Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 22 Jan 2019 21:42:05 +0900 Subject: Fix types --- src/server/api/api-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/api/api-handler.ts') diff --git a/src/server/api/api-handler.ts b/src/server/api/api-handler.ts index 128c1a98d2..0eef9ab5c7 100644 --- a/src/server/api/api-handler.ts +++ b/src/server/api/api-handler.ts @@ -6,7 +6,7 @@ import call from './call'; import { IUser } from '../../models/user'; import { IApp } from '../../models/app'; -export default async (endpoint: IEndpoint, ctx: Koa.Context) => { +export default async (endpoint: IEndpoint, ctx: Koa.BaseContext) => { const body = ctx.is('multipart/form-data') ? (ctx.req as any).body : ctx.request.body; const reply = (x?: any, y?: any) => { -- cgit v1.2.3-freya