Skip to content

Commit eb66c44

Browse files
EshmanskiEshmanski
and
Eshmanski
authored
Fix: add types to arguments of marker methods (#2479)
Co-authored-by: Eshmanski <ru.dev46@trezub.ru>
1 parent 261e0e5 commit eb66c44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/map/src/geometry/Marker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class Marker extends CenterMixin(Geometry) {
8989
});
9090
}
9191

92-
setSymbol(symbol: AnyMarkerSymbol): this {
92+
setSymbol(symbol: AnyMarkerSymbol | Array<AnyMarkerSymbol>): this {
9393
delete this._fixedExtent;
9494
return super.setSymbol.call(this, symbol);
9595
}

packages/map/src/geometry/ext/Geometry.InfoWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Geometry.include(/** @lends Geometry.prototype */ {
3535
* content : '<div style="color:#f00">This is content of the InfoWindow</div>'
3636
* });
3737
*/
38-
setInfoWindow(options: InfoWindowOptionsType) {
38+
setInfoWindow(options: InfoWindowOptionsType | InfoWindow) {
3939
this.removeInfoWindow();
4040
if (options instanceof InfoWindow) {
4141
this._infoWindow = options;

0 commit comments

Comments
 (0)