From 5b00360b17ae57f9fc2e55014ee843c7ace7ecf5 Mon Sep 17 00:00:00 2001 From: Derek Cicerone Date: Fri, 11 Oct 2013 20:40:00 -0400 Subject: [PATCH] Fix future bugs in leaflet.d.ts The 'develop' TypeScript compiler is pickier about generics being fully specified. In this case, 3 arrays could be more specific about the type of elements. --- leaflet/leaflet.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 0bb97cc151..4bb8bcbf1f 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -1581,7 +1581,7 @@ declare module L { * used in GeoJSON for points. If reverse is set to true, the numbers will be interpreted * as (longitude, latitude). */ - static coordsToLatlng(coords: Array, reverse?: boolean): LatLng; + static coordsToLatlng(coords: number[], reverse?: boolean): LatLng; /** * Creates a multidimensional array of LatLng objects from a GeoJSON coordinates @@ -1589,7 +1589,7 @@ declare module L { * 1 for an array of arrays of points, etc., 0 by default). If reverse is set to * true, the numbers will be interpreted as (longitude, latitude). */ - static coordsToLatlngs(coords: Array, levelsDeep?: number, reverse?: boolean): Array; + static coordsToLatlngs(coords: number[], levelsDeep?: number, reverse?: boolean): LatLng[]; }