【发布时间】:2016-08-28 02:03:11
【问题描述】:
我正在使用 angular2-meteor 0.5.4 和 angular2 beta17 编写一个带有 typescript 的 angular2-meteor 应用程序。
我使用accounts-passwordmeteor 包和angular2-meteor-accounts-ui 进行ui 表示。
我还安装了流星包alanning:roles。
现在我需要在 typescript 中导入 Roles,但我没有这样做,因为它不包含 typescript 定义文件。
我在谷歌上搜索,我找到了https://github.com/meteor-typescript/meteor-typescript-libs 包括角色在内的许多包的哪些容器类型脚本定义。
这是要走的路吗?我错过了什么吗?
因为我是流星和打字稿的新手,所以我需要保证我走的是正确的道路。
谢谢!
【问题讨论】:
-
现在有一个 npm 包:npmjs.com/package/@types/meteor-roles
标签: meteor typescript meteor-accounts