在Typescript项目中,我需要导入一些在自己内部做module.exports的旧js文件。import * as httpConnection from '...path...';Could not find a declaration file for module '...path...'. '...path..
我遇到的问题是*.d.ts文件从未生成javascript文件*.js。所以,我不知道是什么导致了这个问题。我还想知道是否可以只在MaskedInputDirective.ts中声明它,而不需要*.d.ts文件。也有可能吗?MaskedInputTypings.d.ts
export function createTextMaskInputElement(a: any):
我正在为Firebase编写我的第一个云函数,它需要firebase-tools模块。我通过将它添加到package.json文件中的依赖项并运行npm install来安装它。然后我尝试使用import * as tools from 'firebase-tools';导入它,但是我得到了以下错误:
无法找到模块“firebase-tools”的</e