效能改進
1.1 版本編譯器通常比之前任何版本快 4 倍左右。請參閱這篇部落格文章,瞭解一些令人印象深刻的圖表。
更好的模組可見性規則
現在,TypeScript 僅在提供 declaration 標誌時,才會嚴格執行模組中型別的可見性。例如,這對於 Angular 場景非常有用。
tsmodule MyControllers {interface ZooScope extends ng.IScope {animals: Animal[];}export class ZooController {// Used to be an error (cannot expose ZooScope), but now is only// an error when trying to generate .d.ts filesconstructor(public $scope: ZooScope) {}/* more code */}}