* Added Error to support stack

* initial seneca.d.ts

* Changed type of Position to be compatible with other packages

such as turf
This commit is contained in:
psnider
2016-06-18 20:43:23 -07:00
committed by Masahiro Wakame
parent b8c3b83ead
commit 29708b6a46
2 changed files with 7 additions and 5 deletions

View File

@@ -72,6 +72,11 @@ var point: GeoJSON.Point = {
coordinates: [100.0, 0.0]
};
// This type is commonly used in the turf package
var pointCoordinates: number[] = point.coordinates
var lineString: GeoJSON.LineString = {
type: "LineString",
coordinates: [ [100.0, 0.0], [101.0, 1.0] ]
@@ -126,4 +131,4 @@ var geometryCollection: GeoJSON.GeometryCollection = {
coordinates: [ [101.0, 0.0], [102.0, 1.0] ]
}
]
}
}

View File

@@ -18,10 +18,7 @@ declare namespace GeoJSON {
/***
* http://geojson.org/geojson-spec.html#positions
*/
export interface Position
{
[index: number]: number;
}
export type Position = number[]
/***
* http://geojson.org/geojson-spec.html#geometry-objects