diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 3f95bd4dce..5589ad9303 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -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; } diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index 5936742a13..1aa11c3442 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -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;