Skip to content
TypeScript

File:Typescript.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ978185· pop 43· linked from 1,002 articles

TypeScript

Sign in to save

Also known as .ts, TS

程式語言,編譯成JavaScript的JavaScript超集

Key facts

Programming language.name
TypeScript
Programming language.logo
Typescript.svg
Programming language.paradigm
Multi-paradigm: functional, generic, imperative, object-oriented
Programming language.family
ECMAScript
Programming language.designer
Microsoft,Anders Hejlsberg,Luke Hoban
Programming language.developer
Microsoft
Programming language.typing
Duck, gradual, strong, structural
Programming language.scope
Lexical
Programming language.license
Apache 2.0
Programming language.file ext
.ts, .tsx, .mts, .cts
Programming language.influenced by
C#, F#, Java, JavaScript, ActionScript
Programming language.influenced
AtScript, AssemblyScript, ArkTS

via Wikipedia infobox

Source code

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. 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 Security issues Language service crashes that substantially impact mainline usage Serious regressions from 5.9 (these must seriously impact a large proportion of users) 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. 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. 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. For details on our planned features and future direction, please refer to our roadmap.

Excerpt from the source-code README · 3,530 chars · not written by Vinony

Article · 中文

TypeScript是由微軟进行開發和维护的一種开源的編程语言。TypeScript是JavaScript的严格語法超集,提供了可選的靜態型別检查。 TypeScript的知名開發者有C#的首席架构师兼Delphi和Turbo Pascal的创始人——安德斯·海尔斯伯格。 TypeScript是为开发大型應用程式而设计的,且可转译成JavaScript。由于TypeScript是JavaScript的严格語法超集,因此任何現有的JavaScript程式都是合法的TypeScript程式。 TypeScript支援為現存JavaScript函式庫添加型別資訊的定义文件,方便其他程序像使用静态型別的TypeScript實體一样,使用现有程式库中的值,就像是C++的標頭檔可以描述目的檔(objectfile)的結構一樣。有許多第三方標頭檔為熱門函式庫像是jQuery、MongoDB、Node.js和D3.js等提供定义文件。 TypeScript编译器本身也是用TypeScript编写,并被转译为JavaScript,以Apache许可证第二版发布。

Abstract from DBpedia / Wikipedia · CC BY-SA

TypeScript · Vinony