是可規模擴充的JavaScript語言。TypeScript為JavaScript增加了可選類型,類和子產品(classes and modules)。TypeScript支援任何浏覽器的大型JavaScript應用程式。在任何主機和任何作業系統上,TypeScript 都是被支援的。TypeScript 編譯成的是可讀的、基于标準的 JavaScript。您可以嘗試一下在一些平台上通過我們的部落格和 Twitter 賬戶跟上最新的動态。
貢獻
有許多方法可以給 TypeScript
貢獻代碼。
- 送出 漏洞 和幫助我們驗證更新檔當因為代碼被送出的時候
- 對 源代碼的改動 進行審查
- 在 StackOverflow 上與其他 TypeScript 使用者和開發人員接洽。
- 加入 Twitter 上的 TypeScript讨論組
- 貢獻漏洞修複
- 閱讀語言規範書( DOCX , PDF )。
文檔
編繹
為了搭造 TypeScript 編譯器,確定你已經安裝了Git和Node.js。
克隆repo的副本:
git clone https://github.com/Microsoft/TypeScript.git
更改為TypeScript目錄:
cd TypeScript
安裝Jake工具及其依賴關系:
npm install -g jake
npm install
用以下其中一個來建立和測試:
jake local # Build the compiler into built/local
jake clean # Delete the built compiler
jake LKG # Replace the last known good with the built one.
# Bootstrapping step to be executed when the built compiler reaches a stable state.
jake tests # Build the test infrastructure using the built compiler.
jake runtests # Run tests using the built compiler and test infrastructure.
# You can override the host or specify a test for this command.
# Use host=<hostName> or tests=<testPath>.
jake baseline-accept # This replaces the baseline test results with the results obtained from jake runtests.
jake -T # List the above commands.
用法
node built/local/tc.js hello.ts
路線圖
有關我們計劃的特點和未來發展方向的詳細資訊,請參閱我們的