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
doc(typescript.md): Clarify the middleware's usages #3039
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3039 +/- ##
=======================================
Coverage 99.75% 99.75%
=======================================
Files 29 29
Lines 829 829
=======================================
Hits 827 827
Misses 2 2 Continue to review full report at Codecov.
|
/cc:@whxaxes |
|
||
// 语法糖,相当于: | ||
// const b = Object.assign({}, config, bizConfig); | ||
// return b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不用特意加注释解释了吧?object spread 现在都已经是众所皆知的规范了 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,我加上你给的连接
doc(typescript.md): Clarify the middleware's usages (#3039)
Clarify the 'ctx' two ways
(Ref: ctx 不一致? #3037 and egg-cors index.d.ts 缺少设置 #3036).
Fix typo errors in index.d.ts.
npm test
passes