Skip to content

Commit d9d6a23

Browse files
committed
Merge pull request DefinitelyTyped#7923 from webbiesdk/leafetNotEveryClassExtendsClass
Leaflet: Not every class constructor inherits fields from the default ClassStatic
2 parents 2c765ae + 7c9e75f commit d9d6a23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

leaflet/leaflet.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare module L {
4141
export function bounds(points: Point[]): Bounds;
4242

4343

44-
export interface BoundsStatic extends ClassStatic {
44+
export interface BoundsStatic {
4545
/**
4646
* Creates a Bounds object from two coordinates (usually top-left and bottom-right
4747
* corners).
@@ -1446,7 +1446,7 @@ declare namespace L {
14461446
*/
14471447
function latLng(coords: LatLngExpression): LatLng;
14481448

1449-
export interface LatLngStatic extends ClassStatic {
1449+
export interface LatLngStatic {
14501450
/**
14511451
* Creates an object representing a geographical point with the given latitude
14521452
* and longitude.
@@ -1532,7 +1532,7 @@ declare namespace L {
15321532
*/
15331533
function latLngBounds(latlngs: LatLngBoundsExpression): LatLngBounds;
15341534

1535-
export interface LatLngBoundsStatic extends ClassStatic {
1535+
export interface LatLngBoundsStatic {
15361536
/**
15371537
* Creates a LatLngBounds object by defining south-west and north-east corners
15381538
* of the rectangle.
@@ -3394,7 +3394,7 @@ declare namespace L {
33943394
*/
33953395
function point(x: number, y: number, round?: boolean): Point;
33963396

3397-
export interface PointStatic extends ClassStatic {
3397+
export interface PointStatic {
33983398
/**
33993399
* Creates a Point object with the given x and y coordinates. If optional round
34003400
* is set to true, rounds the x and y values.
@@ -4184,7 +4184,7 @@ declare namespace L {
41844184
}
41854185

41864186
declare namespace L {
4187-
export interface TransformationStatic extends ClassStatic {
4187+
export interface TransformationStatic {
41884188
/**
41894189
* Creates a transformation object with the given coefficients.
41904190
*/

0 commit comments

Comments
 (0)