Skip to content

Commit

Permalink
fix: Remove "constructors" from interfaces
Browse files Browse the repository at this point in the history
In the context of an interface "constructor" is just an identifier, not
a reserved word.

see: https://stackoverflow.com/questions/46969551
  • Loading branch information
MateuszStefek authored and doom777 committed Jun 24, 2019
1 parent 5955bf8 commit 2bb6102
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core/services/google-maps-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export var google: any;

export interface GoogleMap extends MVCObject {
data?: Data;
constructor(el: HTMLElement, opts?: MapOptions): void;
panTo(latLng: LatLng|LatLngLiteral): void;
panBy(x: number, y: number): void;
setZoom(zoom: number): void;
Expand All @@ -17,15 +16,13 @@ export interface GoogleMap extends MVCObject {
}

export interface LatLng {
constructor(lat: number, lng: number): void;
lat(): number;
lng(): number;
toJSON(): any;
toString(): string;
}

export interface Marker extends MVCObject {
constructor(options?: MarkerOptions): void;
setMap(map: GoogleMap): void;
setPosition(latLng: LatLng|LatLngLiteral): void;
setTitle(title: string): void;
Expand Down Expand Up @@ -221,7 +218,6 @@ export interface MapTypeStyler {
}

export interface InfoWindow extends MVCObject {
constructor(opts?: InfoWindowOptions): void;
close(): void;
getContent(): string|Node;
getPosition(): LatLng;
Expand Down Expand Up @@ -259,7 +255,6 @@ export interface MapsEventListener { remove(): void; }
export interface Size {
height: number;
width: number;
constructor(width: number, height: number, widthUnit?: string, heightUnit?: string): void;
equals(other: Size): boolean;
toString(): string;
}
Expand Down Expand Up @@ -434,7 +429,6 @@ export interface KmlMouseEvent extends MouseEvent {

export interface Data extends MVCObject {
features: Feature[];
constructor(options?: DataOptions): void;
addGeoJson(geoJson: Object, options?: GeoJsonOptions): Feature[];
remove(feature: Feature): void;
setControlPosition(controlPosition: ControlPosition): void;
Expand Down

0 comments on commit 2bb6102

Please sign in to comment.