TypeScript README

The project's README from github.com/microsoft/TypeScript. As one markdown file: README.md.

TypeScript

CI npm version Downloads OpenSSF Scorecard

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.

Installing

For the latest stable version:

npm install -D typescript

For our nightly builds:

npm install -D typescript@next

Contribute

There are many ways to contribute to TypeScript.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Documentation

Roadmap

For details on our planned features and future direction, please refer to our roadmap.

TypeScript (microsoft/TypeScript)

Searching Database…

111.5K ·GitHub
这是什么?TypeScript 是一门面向应用级 JavaScript 的语言:在 JavaScript 的基础上加入了类型系统,由微软开发,用于构建大型应用程序。
我要用的话,是不是得把现有的 JavaScript 重写一遍?不用——TypeScript 是 JavaScript 的超集,你现在的代码本身就能直接用;它新增的类型是可选的,你可以循序渐进地采用。
怎么才能拿到它?README 的 Installing 部分提供了最新稳定版和每夜构建版的链接,另外还有一个在线 playground,你不用安装任何东西就能先试用这门语言。
浏览器能直接运行 TypeScript 吗?不能——它需要先编译:实际运行的是编译后可读的、符合标准的 JavaScript 输出,可以在任何浏览器、任何主机、任何操作系统上运行。
如果我安装这个编译器,它能在哪些系统上运行?这个编译器是一个 Node.js 命令行工具——仓库的 package.json 要求 Node 22.18 或更高版本——所以它可以在 Windows、macOS 和 Linux 上运行。
这个编译器本身是用什么写的?GitHub 显示这个仓库的主要语言是 Go——如今原生的 Go 编译器实现就放在这个仓库里。
TypeScript 是开源的吗?是的——GitHub 显示这个仓库采用 Apache-2.0 许可证,而且项目已经采用了微软的开源行为准则。
这门语言接下来有什么计划?README 里链接了一份公开的路线图,详细列出了计划中的功能和项目的未来方向。
Creator
microsoft
Size
2.8 GB
Stars
111.5K
Age
12y
Commits · 90 Days