在 Angular CLI 项目中包含诸如 localForage 之类的外部库的步骤是什么!?
LocalForage:https ://github.com/localForage/localForage
按照 LocalForage 提供的 README.md 文件
- 安装包:
npm install localforage
将脚本添加到我的 angular.cli
"scripts": ["../node_modules/localforage/dist/localforage.min.js"],
3.现在我必须导入localForage才能被打字稿识别
"import localForage from" localforage ";
但是,我怎样才能将localForage导入我的tsconfig.json?