microsoft / TypeScript

Microsoft / TypeScript

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account. Find others who are using TypeScript at our community page. TypeScript 是一种用于构建大规模 JavaScript 应用程序的语言。它为 JavaScript 添加了可选的类型系统,为在任何浏览器、任何宿主环境以及任何操作系统上运行的大规模 JavaScript 应用提供了强大的工具支持。TypeScript 会被编译成可读的、符合标准的 JavaScript 代码。欢迎在 Playground 中尝试,并通过我们的博客和 Twitter 账号获取最新动态。你也可以在我们的社区页面找到其他正在使用 TypeScript 的开发者。

Installing

安装

For the latest stable version: npm install -D typescript For our nightly builds: npm install -D typescript@next 获取最新稳定版本:npm install -D typescript 获取每日构建版本:npm install -D typescript@next

Contribute

贡献

NOTE: Code changes in this repo are now limited to a small category of fixes: 注意:目前此仓库的代码变更仅限于以下几类修复:

  • Crashes that were introduced in 5.9 or 6.0 that also repro in 7.0 and have a portable fix and don’t incur other behavioral changes
  • 5.9 或 6.0 版本中引入且在 7.0 中依然复现的崩溃问题,且必须具备可移植的修复方案,且不会引发其他行为变更
  • Security issues
  • 安全问题
  • Language service crashes that substantially impact mainline usage
  • 对主流使用场景有重大影响的语言服务崩溃问题
  • Serious regressions from 5.9 (these must seriously impact a large proportion of users)
  • 5.9 版本引入的严重回归问题(必须对大量用户造成严重影响)

Most bug fixes should be submitted to the typescript-go repository. Feature additions and behavioral changes are currently on pause until TypeScript 7.0 is completed. 大多数 Bug 修复应提交至 typescript-go 仓库。在 TypeScript 7.0 完成之前,功能添加和行为变更目前处于暂停状态。

There are many ways to contribute to TypeScript. Submit bugs and help us verify fixes as they are checked in. Review the source code changes. Engage with other TypeScript users and developers on StackOverflow. Help each other in the TypeScript Community Discord. Join the #typescript discussion on Twitter. Contribute bug fixes. 参与 TypeScript 贡献的方式有很多:提交 Bug 并协助验证已签入的修复;审查源代码变更;在 StackOverflow 上与其他 TypeScript 用户和开发者交流;在 TypeScript 社区 Discord 中互助;加入 Twitter 上的 #typescript 讨论;贡献 Bug 修复。

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments. 本项目已采用《微软开源行为准则》(Microsoft Open Source Code of Conduct)。如需了解更多信息,请参阅《行为准则常见问题解答》,或通过 opencode@microsoft.com 联系我们提出其他问题或建议。

Documentation

文档

  • TypeScript in 5 minutes
  • 5 分钟上手 TypeScript
  • Programming handbook
  • 编程手册
  • Homepage
  • 主页

Roadmap

路线图

For details on our planned features and future direction, please refer to our roadmap. 有关我们计划的功能和未来方向的详细信息,请参阅我们的路线图。