Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 2bb6102

Browse files
MateuszStefekdoom777
authored andcommitted
fix: Remove "constructors" from interfaces
In the context of an interface "constructor" is just an identifier, not a reserved word. see: https://stackoverflow.com/questions/46969551
1 parent 5955bf8 commit 2bb6102

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/core/services/google-maps-types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export var google: any;
22

33
export interface GoogleMap extends MVCObject {
44
data?: Data;
5-
constructor(el: HTMLElement, opts?: MapOptions): void;
65
panTo(latLng: LatLng|LatLngLiteral): void;
76
panBy(x: number, y: number): void;
87
setZoom(zoom: number): void;
@@ -17,15 +16,13 @@ export interface GoogleMap extends MVCObject {
1716
}
1817

1918
export interface LatLng {
20-
constructor(lat: number, lng: number): void;
2119
lat(): number;
2220
lng(): number;
2321
toJSON(): any;
2422
toString(): string;
2523
}
2624

2725
export interface Marker extends MVCObject {
28-
constructor(options?: MarkerOptions): void;
2926
setMap(map: GoogleMap): void;
3027
setPosition(latLng: LatLng|LatLngLiteral): void;
3128
setTitle(title: string): void;
@@ -221,7 +218,6 @@ export interface MapTypeStyler {
221218
}
222219

223220
export interface InfoWindow extends MVCObject {
224-
constructor(opts?: InfoWindowOptions): void;
225221
close(): void;
226222
getContent(): string|Node;
227223
getPosition(): LatLng;
@@ -259,7 +255,6 @@ export interface MapsEventListener { remove(): void; }
259255
export interface Size {
260256
height: number;
261257
width: number;
262-
constructor(width: number, height: number, widthUnit?: string, heightUnit?: string): void;
263258
equals(other: Size): boolean;
264259
toString(): string;
265260
}
@@ -434,7 +429,6 @@ export interface KmlMouseEvent extends MouseEvent {
434429

435430
export interface Data extends MVCObject {
436431
features: Feature[];
437-
constructor(options?: DataOptions): void;
438432
addGeoJson(geoJson: Object, options?: GeoJsonOptions): Feature[];
439433
remove(feature: Feature): void;
440434
setControlPosition(controlPosition: ControlPosition): void;

0 commit comments

Comments
 (0)