好词典

typescript

UK //ˈtaɪpskript//US //ˈtaɪpskript//

词源

Compound word from 'type' (referring to static typing) + 'Script' (from JavaScript), first released by Microsoft in 2012.

noun

❶ 微软开发的编程语言,是JavaScript的超集,添加了静态类型检查功能,帮助开发者更早发现错误。

“TypeScript helps catch errors during development rather than at runtime.”

(TypeScript有助于在开发期间而非运行时捕获错误。)

“Many large-scale applications are built with TypeScript for better maintainability.”

(许多大型应用程序使用TypeScript构建以获得更好的可维护性。)

同义词:TS, Typed JavaScript

常见短语

TypeScript compiler — 将TypeScript代码转换为JavaScript代码的工具,简称tsc。

“Run the TypeScript compiler to generate JavaScript files.”

(运行TypeScript编译器来生成JavaScript文件。)

TypeScript interface — 用于定义对象结构的类型约束,帮助检查属性是否存在及类型是否正确。

“Define a User interface to ensure all user objects have required properties.”

(定义一个User接口来确保所有用户对象都具有必需的属性。)