mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Fixed latLngBounds argument type and added missing variables to DomUtil
This commit is contained in:
Vendored
+6
-1
@@ -76,6 +76,10 @@ declare namespace L {
|
||||
function enableImageDrag(): void;
|
||||
function preventOutline(el: HTMLElement): void;
|
||||
function restoreOutline(): void;
|
||||
|
||||
let TRANSFORM: string;
|
||||
let TRANSITION: string;
|
||||
let TRANSITION_END: string;
|
||||
}
|
||||
|
||||
interface CRS {
|
||||
@@ -170,7 +174,7 @@ declare namespace L {
|
||||
|
||||
function latLngBounds(southWest: LatLngExpression, northEast: LatLngExpression): LatLngBounds;
|
||||
|
||||
function latLngBounds(latlngs: LatLngBoundsLiteral): LatLngBounds;
|
||||
function latLngBounds(latlngs: LatLngExpression[]): LatLngBounds;
|
||||
|
||||
type PointTuple = [number, number];
|
||||
|
||||
@@ -1541,6 +1545,7 @@ declare namespace L {
|
||||
function indexOf(array: any[], el: any): number;
|
||||
function requestAnimFrame(fn: () => void, context?: any, immediate?: boolean): number;
|
||||
function cancelAnimFrame(id: number): void;
|
||||
|
||||
let lastId: number;
|
||||
let emptyImageUrl: string;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,9 @@ let latLngBounds: L.LatLngBounds;
|
||||
latLngBounds = L.latLngBounds(latLng, latLng);
|
||||
latLngBounds = L.latLngBounds(latLngLiteral, latLngLiteral);
|
||||
latLngBounds = L.latLngBounds(latLngTuple, latLngTuple);
|
||||
latLngBounds = L.latLngBounds(latLngBoundsLiteral);
|
||||
latLngBounds = L.latLngBounds([latLngLiteral, latLngLiteral, latLngLiteral]);
|
||||
latLngBounds = L.latLngBounds([latLng, latLng, latLng]);
|
||||
|
||||
latLngBounds = new L.LatLngBounds(latLng, latLng);
|
||||
latLngBounds = new L.LatLngBounds(latLngLiteral, latLngLiteral);
|
||||
@@ -453,15 +456,21 @@ L.Util.bind(() => {}, {});
|
||||
L.Util.stamp({});
|
||||
L.Util.throttle(() => {}, 123, {});
|
||||
L.Util.wrapNum(123, []);
|
||||
L.Util.wrapNum(123, [], true);
|
||||
L.Util.falseFn();
|
||||
L.Util.formatNum(123);
|
||||
L.Util.formatNum(123, 1);
|
||||
L.Util.trim('word ');
|
||||
L.Util.splitWords('word word');
|
||||
L.Util.setOptions({}, {});
|
||||
L.Util.getParamString({});
|
||||
L.Util.getParamString({}, '');
|
||||
L.Util.getParamString({}, '', true);
|
||||
L.Util.template('template', {});
|
||||
L.Util.isArray({});
|
||||
L.Util.indexOf([], {});
|
||||
L.Util.requestAnimFrame(() => {});
|
||||
L.Util.requestAnimFrame(() => {}, {});
|
||||
L.Util.requestAnimFrame(() => {}, {}, true);
|
||||
L.Util.cancelAnimFrame(1);
|
||||
L.Util.emptyImageUrl;
|
||||
|
||||
Reference in New Issue
Block a user