Skip to content

Commit

Permalink
Replace number[] by [number, number] (DefinitelyTyped#11704)
Browse files Browse the repository at this point in the history
  • Loading branch information
stonio authored and mhegazy committed Oct 4, 2016
1 parent c55d26d commit dd95604
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openlayers/openlayers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10982,7 +10982,7 @@ declare module ol {
* An array of numbers representing an xy coordinate. Example: `[16, 48]`.
* @typedef {Array.<number>}
*/
type Coordinate = number[];
type Coordinate = [number, number];

/**
* A function that takes a {@link ol.Coordinate} and transforms it into a
Expand Down Expand Up @@ -11036,7 +11036,7 @@ declare module ol {
* An array of numbers representing an extent: `[minx, miny, maxx, maxy]`.
* @typedef {Array.<number>}
*/
type Extent = number[];
type Extent = [number, number, number, number];

/**
* {@link ol.source.Vector} sources use a function of this type to load
Expand Down Expand Up @@ -11110,7 +11110,7 @@ declare module ol {
* x-coordinate, the second the y-coordinate of the pixel.
* @typedef {Array.<number>}
*/
type Pixel = number[];
type Pixel = [number, number];

/**
* Function to perform manipulations before rendering. This function is called
Expand Down Expand Up @@ -11160,7 +11160,7 @@ declare module ol {
* An array of numbers representing a size: `[width, height]`.
* @typedef {Array.<number>}
*/
type Size = number[];
type Size = [number, number];

/**
* @typedef {{attributions: (ol.AttributionLike|undefined),
Expand Down Expand Up @@ -11291,7 +11291,7 @@ declare module ol {
* grid. The order is `z`, `x`, and `y`. `z` is the zoom level.
* @typedef {Array.<number>} ol.TileCoord
*/
type TileCoord = number[];
type TileCoord = [number, number, number];

/**
* A function that takes an {@link ol.Tile} for the tile and a `{string}` for
Expand Down

0 comments on commit dd95604

Please sign in to comment.