Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#1129 from derekcicerone/patch-19
Browse files Browse the repository at this point in the history
Fix future bugs in leaflet.d.ts
  • Loading branch information
borisyankov committed Oct 12, 2013
2 parents 063531b + 5b00360 commit f2f6a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leaflet/leaflet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1581,15 +1581,15 @@ 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
* array. levelsDeep specifies the nesting level (0 is for an array of points,
* 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[];

}

Expand Down

0 comments on commit f2f6a95

Please sign in to comment.