wangdoc / typescript-tutorial

TypeScript 教程
https://wangdoc.com/typescript
2.49k stars 269 forks source link

docs(types): 语句错误 #97

Closed ironxc closed 9 months ago

ironxc commented 9 months ago

TypeScript 的类型系统一章 语句错误

子类型x不能赋值为父类型y 应该是 父类型y不能赋值为子类型x

ruanyf commented 9 months ago

你难道不看示例,就提交 PR 吗?

ironxc commented 9 months ago

十分抱歉,没有看清