【发布时间】:2017-10-28 10:54:36
【问题描述】:
我在云函数上使用带有 javascript 的 firebase 云函数。 而且,我想从 javascript 切换到 typescript。
但是我不能在 typescript 上使用 firebase-admin,因为以下命令失败。
command: npm install @types/firebase-admin --save-dev
error: '@types/firebase-admin' is not in the npm registry.
根据此发行说明,firebase 管理员似乎支持打字稿。 有人可以告诉我们如何在云功能上使用 typescript 和 firebase-admin 吗?
https://firebase.google.com/support/release-notes/admin/node#4.1.3
【问题讨论】:
标签: typescript firebase google-cloud-functions firebase-admin