TypeScript/doc/release-notes/TypeScript 1.1.md
Shengping Zhong 683ebb81a5 New section: What's new (#74)
Align with official site structure
2016-04-10 09:19:32 +08:00

727 B
Raw Blame History

TypeScript 1.1

改进性能

1.1版本的编译器速度比所有之前发布的版本快4倍。阅读这篇博客里的有关图表

更好的模块可见性规则

TypeScript现在只在使用--declaration标记时才严格强制模块里类型的可见性。这在Angular里很有用例如

module 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 files
    constructor(public $scope: ZooScope) { }
    /* more code */
  }
}