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
但是目前尚不清楚该怎么做,我们将给予任何帮助
答案 0 :(得分:0)
函数function DrawFillSVG(this: whateverType, options: ob) {
this.options = extend({}, this.options);
extend(this.options, options);
this._init();
类型注释如下:
[![latitude range - 5 to 22 degree
longitude range 70 ot 94 degree
GCS_WGS_1984
WKID: 4326 Authority: EPSG
Angular Unit: Degree (0.0174532925199433)
Prime Meridian: Greenwich (0.0)
Datum: D_WGS_1984
Spheroid: WGS_1984
Semimajor Axis: 6378137.0
Semiminor Axis: 6356752.314245179
Inverse Flattening: 298.257223563][1]][1]