【发布时间】:2020-03-07 03:54:06
【问题描述】:
我创建了一个 Angular 项目,在其中我初始化了 Firebase Cloud Functions。我的文件夹变成了这样:
project-root
node_modules
src
app
(angular components)
functions
node_modules
src
index.ts
我希望我的一些打字稿类可以在 Cloud Functions 和 Angular 中使用,而无需在两个文件夹中复制,但我不知道该怎么做。
如果可能,我还希望它们共享相同的节点模块。
【问题讨论】:
标签: angular typescript firebase google-cloud-functions