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

模块这一节文字有错误 #2

Open
CocoSilent opened this issue Jan 23, 2022 · 0 comments
Open

模块这一节文字有错误 #2

CocoSilent opened this issue Jan 23, 2022 · 0 comments

Comments

@CocoSilent
Copy link

https://mqyqingfeng.github.io/learn-typescript/handbook/Modules.html#%E6%A8%A1%E5%9D%97-module

在我们开始之前,我们需要先理解 TypeScript 认为什么是一个模块。JavaScript 规范声明任何没有 export 或者顶层 await 的 JavaScript 文件都应该被认为是一个脚本,而非一个模块。

应该是顶层import

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