【发布时间】:2020-10-16 02:21:01
【问题描述】:
interface ob {
[key: string]: string
}
function DrawFillSVG(options: ob) {
this.options = extend({}, this.options);
extend(this.options, options);
this._init();
}
错误提示:
TS2683: 'this' implicitly has type 'any' because it does not have a type annotation
但我不清楚如何去做,任何帮助都会得到帮助
【问题讨论】:
-
改用
class DrawFillSVG? -
显示整个文件
-
什么是选项??
标签: javascript typescript prototype