mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
[yandex-maps] lint fixes
This commit is contained in:
Vendored
+10
-15
@@ -1,7 +1,8 @@
|
||||
// Type definitions for yandex-maps v2.1
|
||||
// Type definitions for yandex-maps 2.1
|
||||
// Project: https://github.com/Delagen/typings-yandex-maps
|
||||
// Definitions by: Delagen <https://github.com/Delagen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
declare namespace ymaps {
|
||||
interface IClassConstructor<T> {
|
||||
@@ -674,7 +675,6 @@ declare namespace ymaps {
|
||||
setParent(parent: IEventManager | any): this;
|
||||
|
||||
fire(type: string, eventobject: object | IEvent): this;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -774,9 +774,9 @@ declare namespace ymaps {
|
||||
simplification?: boolean;
|
||||
});
|
||||
|
||||
static fromEncodedCoordinates(encodedCoordinates: string): geometry.LineString; //tslint:disable-line function-name
|
||||
static fromEncodedCoordinates(encodedCoordinates: string): LineString; //tslint:disable-line function-name
|
||||
|
||||
static toEncodedCoordinates(geometry: geometry.LineString): string; //tslint:disable-line function-name
|
||||
static toEncodedCoordinates(geometry: LineString): string; //tslint:disable-line function-name
|
||||
|
||||
events: IEventManager;
|
||||
options: IOptionManager;
|
||||
@@ -1044,7 +1044,6 @@ declare namespace ymaps {
|
||||
remove(object: object): this;
|
||||
|
||||
getMap(): Map;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1236,7 +1235,7 @@ declare namespace ymaps {
|
||||
export class ZoomRange implements IEventEmitter {
|
||||
constructor(map: Map, constraints: number[]);
|
||||
|
||||
events: ymaps.IEventManager;
|
||||
events: IEventManager;
|
||||
|
||||
get(coords?: number[]): Promise<number[]>;
|
||||
|
||||
@@ -1268,7 +1267,7 @@ declare namespace ymaps {
|
||||
}
|
||||
|
||||
export class PathModel implements IEventEmitter {
|
||||
events: ymaps.IEventManager;
|
||||
events: IEventManager;
|
||||
properties: data.Manager;
|
||||
route: RouteModel;
|
||||
|
||||
@@ -1373,7 +1372,7 @@ declare namespace ymaps {
|
||||
}
|
||||
|
||||
export class PathModel implements IEventEmitter {
|
||||
events: ymaps.IEventManager;
|
||||
events: IEventManager;
|
||||
properties: data.Manager;
|
||||
route: RouteModel;
|
||||
|
||||
@@ -1584,7 +1583,7 @@ declare namespace ymaps {
|
||||
export class MultiRouteModel implements IEventEmitter {
|
||||
constructor(referencePoints: IMultiRouteReferencePoint[], params?: IMultiRouteParams);
|
||||
|
||||
events: ymaps.IEventManager;
|
||||
events: IEventManager;
|
||||
properties: data.Manager;
|
||||
|
||||
destroy(): void;
|
||||
@@ -1725,13 +1724,12 @@ declare namespace ymaps {
|
||||
remove(types: string[][] | string[] | string, callback: (event: (object | IEvent)) => void, context?: object, priority?: number): this;
|
||||
|
||||
fire(type: string, eventobject: object | IEvent): this;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export namespace panorama {
|
||||
export class Manager implements IEventEmitter {
|
||||
events: ymaps.IEventManager;
|
||||
events: IEventManager;
|
||||
|
||||
closePlayer(): void;
|
||||
|
||||
@@ -1808,7 +1806,7 @@ declare namespace ymaps {
|
||||
state: IDataManager;
|
||||
events: IEventManager;
|
||||
options: IOptionManager;
|
||||
editor: router.Editor;
|
||||
editor: Editor;
|
||||
|
||||
getOverlay(): Promise<IOverlay | null>;
|
||||
|
||||
@@ -1837,7 +1835,6 @@ declare namespace ymaps {
|
||||
getViaPoints(): GeoObjectCollection;
|
||||
|
||||
getWayPoints(): GeoObjectCollection;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2697,7 +2694,6 @@ declare namespace ymaps {
|
||||
getCopyrights?(coords: number[], zoom: number): Promise<(string | HTMLElement)[]>;
|
||||
|
||||
getZoomRange?(point: number[]): Promise<number[]>;
|
||||
|
||||
}
|
||||
|
||||
export interface ILayout extends IDomEventEmitter {
|
||||
@@ -2915,7 +2911,6 @@ declare namespace ymaps {
|
||||
getCoordinates(): number[][];
|
||||
|
||||
getLength(): number;
|
||||
|
||||
}
|
||||
|
||||
export interface IPixelGeometry extends IBaseGeometry {
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"array-type": false,
|
||||
"interface-name": false,
|
||||
"comment-format": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ const mapMarker = new ymaps.Placemark(
|
||||
{
|
||||
balloonContent: "test",
|
||||
balloonAutoPan: true,
|
||||
balloonLayout: balloonLayout,
|
||||
balloonLayout,
|
||||
balloonPanelMaxMapArea: 0,
|
||||
iconLayout: "default#image",
|
||||
iconImageHref: "./test/icon.png",
|
||||
|
||||
Reference in New Issue
Block a user