Skip to content

Item 81: Use allowJs to Mix TypeScript and JavaScript

要点

  • Use the allowJs compiler option to support mixed JavaScript and TypeScript as you transition your project.
  • Get your tests and build chain working with TypeScript before beginning large-scale migration.
  • 使用 allowJs 编译选项来支持在过渡项目时混合使用 JavaScript 和 TypeScript。
  • 在开始大规模迁移之前,先确保你的测试和构建链与 TypeScript 一起正常工作。

Released under the MIT License.