Fix types

This commit is contained in:
syuilo
2019-01-22 21:42:05 +09:00
parent 97e8ac1d27
commit 8bf9e87117
11 changed files with 20 additions and 20 deletions

View File

@ -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) => {