在角CLI项目中包含外部库(如localForage )的步骤是什么!?
LocalForage:https://github.com/localForage/localForage
遵循由README.md提供的LocalForage文件
npm install localforage"scripts": ["../node_modules/localforage/dist/localforage.min.js"],3.现在我必须导入localForage才能被打字本识别。
"import localForage from" localforage ";
但是,如何将localForage导入到tsconfig.json中呢?
发布于 2017-05-03 14:53:00
您不需要为包含d.ts文件的库包获取键入文件。角包已经包括了。
import * as localForage from "localforage";https://stackoverflow.com/questions/43761154
复制相似问题