【发布时间】:2015-10-13 13:12:11
【问题描述】:
我正在使用随 tsd 一起安装的 typescript 定义来处理 Angular2 的预览版。最近他们发布了 2.0.0-alpha.40,现在我的路由不再起作用了。我查看了 angular 网站上的示例,它们引用了 angular2/router 中的例如 routerBindings,但当前的 angular2/router 没有定义此函数。我确实使用 tsd 运行了更新和重新安装,但没有任何变化。我如何知道发布的 angular2 typescript 定义是否与 javascript 版本发布是最新的?
【问题讨论】:
-
They stopped using tsd 来自 alpha-41。
typings: *.d.ts files are now bundled with npm package, tsd link or tsd install no longer needed. -
正如 Jesse 所说,它现在带有 npm 包 docs.google.com/document/d/…
-
谢谢大家,不胜感激。
标签: typescript angular angular-routing tsd