Closed kobik closed 5 years ago
Currently validate function is defined as follows
validate
export function validate(req: object, res: object, next: Function): void;
When using TypeScript and Koa, vscode displays an error as Koa middleware should be defined as follows
export function validate(ctx: Context, next: Function): void;
Currently
validate
function is defined as followsWhen using TypeScript and Koa, vscode displays an error as Koa middleware should be defined as follows