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

函数参数类型这章节有误 #288

Open
duriann opened this issue Jan 15, 2024 · 1 comment
Open

函数参数类型这章节有误 #288

duriann opened this issue Jan 15, 2024 · 1 comment

Comments

@duriann
Copy link

duriann commented Jan 15, 2024

https://jkchao.github.io/typescript-book-chinese/typings/typeCompatibility.html#%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0%E7%B1%BB%E5%9E%8B

image
划红线这段放ts里报错了

@duriann
Copy link
Author

duriann commented Jan 15, 2024

Type '(point: Point3D) => void' is not assignable to type '(point: Point2D) => void'.
Types of parameters 'point' and 'point' are incompatible.
Property 'z' is missing in type 'Point2D' but required in type 'Point3D'.(2322)
input.tsx(8, 3): 'z' is declared here.

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

No branches or pull requests

1 participant