24 Star 88 Fork 34

wolfx/TypeScript-Documents-Chinese

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
typescript-1.1.md 736 Bytes
一键复制 编辑 原始数据 按行查看 历史
patrick.zhongsp 提交于 4年前 . refactor: structure

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 */
  }
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/wolfx/TypeScript-Handbook-zh.git
git@gitee.com:wolfx/TypeScript-Handbook-zh.git
wolfx
TypeScript-Handbook-zh
TypeScript-Documents-Chinese
dev

搜索帮助