是否可以包含jquery.d.ts并使用jQueryStatic类型?我需要这样的东西protected el : jQueryStatic;import {jQuery} from 'jquery';
error TS2305: Module '"jquery"' has no exportedmember '
我正在尝试运行tsc来编译我的所有类型记录文件。它抱怨无法为Jquery找到名称$。Do you need to install type definitions for jQuery?Try `npm i --save-dev @types/jquery
然后,我安装了它让我安装的jquery类型定义(yarn add @types/jquery --dev)。我再次尝试运行编译器,它仍然抱怨说它找不到名称$,尽管jquery<e
我有一个与npm一起管理的Range2项目,我最近运行了若要向项目添加JQuery类型定义,请执行以下操作。现在的问题是,类型记录编译器(使用npm run tsc:w)抱怨:
node_modules/@types/jquery/index.d.ts(3246,5):error类型/globals/jquery