koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

Typescript error #115

Closed jasonlewicki closed 5 months ago

jasonlewicki commented 3 years ago

Not sure which repo this goes in:

node_modules/@types/koa-joi-router/index.d.ts:29:53 - error TS2694: Namespace 'Application' has no exported member 'Next'.

29     type FullHandler = (ctx: Koa.Context, next: Koa.Next) => any;
                                               ~~~~

Found 1 error.
3imed-jaberi commented 3 years ago

@jasonlewicki, this error comes from@types/koa-joi-router due to not be use the right type of handler. You can find the right type here.