Skip to content

类、class、11 #113

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

Closed
AkimotoReiko opened this issue Jun 29, 2024 · 3 comments
Closed

类、class、11 #113

AkimotoReiko opened this issue Jun 29, 2024 · 3 comments

Comments

@AkimotoReiko
Copy link

对于那些只设置了类型、没有初值的顶层属性,有一个细节需要注意。 这个例子中, target 设置为大于等于ES2022,代码的执行结果打印的不是 undefined,但是设置 useDefineForClassFields 为 true 就会打印 undefined,这里的疑问点就是 es2022 好像没生效,另外这一章提到了 tsconfig.json,但是这一章里面没有关于 useDefineForClassFields 的记载

@AkimotoReiko
Copy link
Author

image

@ruanyf ruanyf closed this as completed in bbde468 Jul 1, 2024
@ruanyf
Copy link
Contributor

ruanyf commented Jul 1, 2024

谢谢指出,这个部分完全重写了。

@AkimotoReiko
Copy link
Author

感谢阮老师

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

2 participants