Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c063ba9

Browse files
authored
Merge pull request xcatliu#17 from WangYuLue/master
Update type-of-function.md
2 parents a9f88ea + 91ed75d commit c063ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basics/type-of-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function reverse(x: number | string): number | string {
209209

210210
上例中,我们重复定义了多次函数 `reverse`,前几次都是函数定义,最后一次是函数实现。在编辑器的代码提示中,可以正确的看到前两个提示。
211211

212-
注意,TypeScript 会优先从最前面的函数定义开始匹配,所以多个函数定义如果由包含关系,需要优先把精确的定义写在前面。
212+
注意,TypeScript 会优先从最前面的函数定义开始匹配,所以多个函数定义如果有包含关系,需要优先把精确的定义写在前面。
213213

214214
## 参考
215215

0 commit comments

Comments
 (0)