typescript - 使用 TypeScript 的 CreateJS
问题描述
我有这些错误,不知道如何解决。每次我尝试用 TSC 编译我的项目时,它都会抛出错误:
error TS2339: Property 'call' does not exist on type 'void'
在这行代码(调用方法):
createjs.Tween.get(this.clip).wait(this.clipDuration).call(this.endFrameScript.bind(this));
这个错误
error TS2339: Property 'to' does not exist on type 'void'
在这条线上(到方法)
createjs.Tween.get(this.feedback).wait(1000).to({alpha:0},1000);
重写这些代码行以使其符合 Typescript 的最佳方法是什么?我们在哪里可以找到最新的 CreateJS d.ts 文件?发布在 DefinedTyped GitHub 上的 CreateJS d.ts (easeljs.d.ts) 错误太多。
谢谢
解决方案
推荐阅读
- swift - 如果电池附件类型设置为“复选标记”,是否会自动选择它?
- python - 如何使用 BeautifulSoup 单击页面上的某个位置
- c++ - 在 c++ Primer 中使用 Struct 和 Vector 时出现错误 C2661
- c - 统一随机数——不包括上限
- python - 未找到:ID 为 0 的 TF GPU 设备未注册,之后出现段错误
- java - 找不到 RestOperations bean
- java - 在活动android中重新启动一个void
- node.js - 为我的机器人改进 discord.js 音频质量
- c# - 如何在 ASP.NET Core Web API 中使用 MassTransit 事件总线?
- java - Data Structures Implementation