mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7923 from webbiesdk/leafetNotEveryClassExtendsClass
Leaflet: Not every class constructor inherits fields from the default ClassStatic
This commit is contained in:
Vendored
+5
-5
@@ -41,7 +41,7 @@ declare module L {
|
||||
export function bounds(points: Point[]): Bounds;
|
||||
|
||||
|
||||
export interface BoundsStatic extends ClassStatic {
|
||||
export interface BoundsStatic {
|
||||
/**
|
||||
* Creates a Bounds object from two coordinates (usually top-left and bottom-right
|
||||
* corners).
|
||||
@@ -1446,7 +1446,7 @@ declare namespace L {
|
||||
*/
|
||||
function latLng(coords: LatLngExpression): LatLng;
|
||||
|
||||
export interface LatLngStatic extends ClassStatic {
|
||||
export interface LatLngStatic {
|
||||
/**
|
||||
* Creates an object representing a geographical point with the given latitude
|
||||
* and longitude.
|
||||
@@ -1532,7 +1532,7 @@ declare namespace L {
|
||||
*/
|
||||
function latLngBounds(latlngs: LatLngBoundsExpression): LatLngBounds;
|
||||
|
||||
export interface LatLngBoundsStatic extends ClassStatic {
|
||||
export interface LatLngBoundsStatic {
|
||||
/**
|
||||
* Creates a LatLngBounds object by defining south-west and north-east corners
|
||||
* of the rectangle.
|
||||
@@ -3394,7 +3394,7 @@ declare namespace L {
|
||||
*/
|
||||
function point(x: number, y: number, round?: boolean): Point;
|
||||
|
||||
export interface PointStatic extends ClassStatic {
|
||||
export interface PointStatic {
|
||||
/**
|
||||
* Creates a Point object with the given x and y coordinates. If optional round
|
||||
* is set to true, rounds the x and y values.
|
||||
@@ -4184,7 +4184,7 @@ declare namespace L {
|
||||
}
|
||||
|
||||
declare namespace L {
|
||||
export interface TransformationStatic extends ClassStatic {
|
||||
export interface TransformationStatic {
|
||||
/**
|
||||
* Creates a transformation object with the given coefficients.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user