我们如何在 angular 4 项目中使用 @types/bootbox 和 @types/jquery?我做了这样的事情
npm install @types/bootbox
在我的代码中,我正在做这样的事情
import * as bootbox from 'bootbox'.
我收到此错误@types/bootbox/index.d.ts (96,41): Generic type 'JQuery' requires 2 type argument(s)。
只需使用 NPM安装它们(@types/bootbox,@types/jquery):
npm install --save-dev @types/bootbox
npm install --save-dev @types/jquery
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句