diff --git a/types/yandex-maps/yandex-maps-tests.ts b/types/yandex-maps/yandex-maps-tests.ts
index 2406ef6cd6..c300679d35 100644
--- a/types/yandex-maps/yandex-maps-tests.ts
+++ b/types/yandex-maps/yandex-maps-tests.ts
@@ -22,8 +22,8 @@ const balloonLayout = ymaps.templateLayoutFactory.createClass(
"
",
{
build(this: ymaps.ILayout): void {
- ( ( this.constructor).superclass).build.call(this);
- this.getParentElement().children.item(0)!.children.item(0)!.appendChild(( this.getData()).properties.get("balloonContent"));
+ ((this.constructor as any).superclass as ymaps.layout.templateBased.Base).build.call(this);
+ this.getParentElement().children.item(0)!.children.item(0)!.appendChild((this.getData() as any).properties.get("balloonContent"));
}
}
);
@@ -52,6 +52,6 @@ mapMarker.events.add("click", (event: ymaps.Event) => {
map.geoObjects.add(mapMarker);
-map.setCenter(( mapMarker.geometry).getCoordinates() || [55.76, 37.64]);
+map.setCenter((mapMarker.geometry as ymaps.IPointGeometry).getCoordinates() || [55.76, 37.64]);
map.setZoom(13);