mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Update index.d.ts
Add Class "Polyline" , Interface "IPolylineOptions" and change IGeoObjectFeature, field takes type "object" .
This commit is contained in:
Vendored
+11
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user