问题描述
我已经安装了jquery和@ types / jquery。我想使用jquery.Deferred(),但是当我尝试使用它时,出现错误“ $ .Deferred不是函数”。
import * as $ from "jquery";
u
// somewhere in code
let dfd = $.Deferred<
{ response: JQueryXHR; body?: any },{ response: JQueryXHR; errorThrown: string }
>();
它是由https://github.com/OpenAPITools/openapi-generator为打字稿生成的代码。我在React Native应用程序中使用它。有什么建议? 谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)