Skip to content
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

Document the chainability. #1444

Closed
adjenks opened this issue Apr 11, 2020 · 0 comments · Fixed by #1449
Closed

Document the chainability. #1444

adjenks opened this issue Apr 11, 2020 · 0 comments · Fixed by #1449

Comments

@adjenks
Copy link

adjenks commented Apr 11, 2020

The app.use() function appears to return this, so it's chainable like so: app.use(a).use(b).use(c).listen(8888)

It's not document here: https://github.com/koajs/koa/blob/422e539e8989e65ba43ecc39ddbaa3c4f755d465/docs/api/index.md#appusefunction

I just tested it, it seems to work fine, its return value should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant