-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
research: configure eslint to prefer return next()
when no await
is needed
#53
Comments
Koa's middleware uses |
yes, just wanna align our code style. |
agreed with you that return value doesn't matter. |
disallow return has an adventage: prevent treating the return value as useful staff by mistake |
agreed, so i added the following type in export type KoaMiddleware<T, R> = (context: T, next: KoaNext<R>) => Promise<void>; this makes sure that middleware is a also check out the official example of using |
No description provided.
The text was updated successfully, but these errors were encountered: