From a4e765a77684407f0637e66369be02abb58f5437 Mon Sep 17 00:00:00 2001 From: AlexeyTokmakov Date: Fri, 7 Dec 2018 14:35:30 +0300 Subject: [PATCH] Update index.d.ts Add Class "Polyline" , Interface "IPolylineOptions" and change IGeoObjectFeature, field takes type "object" . --- types/yandex-maps/index.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/types/yandex-maps/index.d.ts b/types/yandex-maps/index.d.ts index 94806b9254..1986a5238c 100644 --- a/types/yandex-maps/index.d.ts +++ b/types/yandex-maps/index.d.ts @@ -2126,7 +2126,7 @@ declare namespace ymaps { } interface IGeoObjectFeature { - geometry?: IGeometry | IGeometryJson; + geometry?: IGeometry | IGeometryJson | object; properties?: IDataManager | object; } @@ -3036,6 +3036,7 @@ declare namespace ymaps { shift(offset: number[]): IShape; } + class Monitor { constructor(dataManager: IDataManager | IOptionManager); add(name: string[] | string, changeCallback: (event: (object | IEvent)) => void, context?: any, params?: any): Monitor; @@ -3044,4 +3045,13 @@ declare namespace ymaps { remove(name: string): Monitor; removeAll(): Monitor; } + + class Polyline extends GeoObject { + constructor(geometry: number[][] | object | ILineStringGeometry, properties: object | IDataManager, options?: IPolylineOptions); + } + + interface IPolylineOptions { + cursor?: string; + [index: string]: any; + } }