Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/geojson

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/geojson - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

82

geojson/index.d.ts
// Type definitions for GeoJSON Format Specification Revision 1.0
// Project: http://geojson.org/
// Definitions by: Jacob Bruun <https://github.com/cobster>
// Arne Schubert <https://github.com/atd-schubert>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

@@ -9,4 +11,4 @@ export as namespace GeoJSON;

/***
* http://geojson.org/geojson-spec.html#geojson-objects
*/
* http://geojson.org/geojson-spec.html#geojson-objects
*/
export interface GeoJsonObject {

@@ -19,9 +21,9 @@ type: string;

/***
* http://geojson.org/geojson-spec.html#positions
*/
* http://geojson.org/geojson-spec.html#positions
*/
export type Position = number[];
/***
* http://geojson.org/geojson-spec.html#geometry-objects
*/
* http://geojson.org/geojson-spec.html#geometry-objects
*/
export interface DirectGeometryObject extends GeoJsonObject {

@@ -36,6 +38,6 @@ coordinates: Position[][][] | Position[][] | Position[] | Position;

/***
* http://geojson.org/geojson-spec.html#point
*/
* http://geojson.org/geojson-spec.html#point
*/
export interface Point extends DirectGeometryObject {
type: 'Point';
type: "Point";
coordinates: Position;

@@ -45,6 +47,6 @@ }

/***
* http://geojson.org/geojson-spec.html#multipoint
*/
* http://geojson.org/geojson-spec.html#multipoint
*/
export interface MultiPoint extends DirectGeometryObject {
type: 'MultiPoint';
type: "MultiPoint";
coordinates: Position[];

@@ -54,6 +56,6 @@ }

/***
* http://geojson.org/geojson-spec.html#linestring
*/
* http://geojson.org/geojson-spec.html#linestring
*/
export interface LineString extends DirectGeometryObject {
type: 'LineString';
type: "LineString";
coordinates: Position[];

@@ -63,6 +65,6 @@ }

/***
* http://geojson.org/geojson-spec.html#multilinestring
*/
* http://geojson.org/geojson-spec.html#multilinestring
*/
export interface MultiLineString extends DirectGeometryObject {
type: 'MultiLineString';
type: "MultiLineString";
coordinates: Position[][];

@@ -72,6 +74,6 @@ }

/***
* http://geojson.org/geojson-spec.html#polygon
*/
* http://geojson.org/geojson-spec.html#polygon
*/
export interface Polygon extends DirectGeometryObject {
type: 'Polygon';
type: "Polygon";
coordinates: Position[][];

@@ -81,6 +83,6 @@ }

/***
* http://geojson.org/geojson-spec.html#multipolygon
*/
* http://geojson.org/geojson-spec.html#multipolygon
*/
export interface MultiPolygon extends DirectGeometryObject {
type: 'MultiPolygon';
type: "MultiPolygon";
coordinates: Position[][][];

@@ -90,6 +92,6 @@ }

/***
* http://geojson.org/geojson-spec.html#geometry-collection
*/
* http://geojson.org/geojson-spec.html#geometry-collection
*/
export interface GeometryCollection extends GeoJsonObject {
type: 'GeometryCollection';
type: "GeometryCollection";
geometries: GeometryObject[];

@@ -99,8 +101,8 @@ }

/***
* https://tools.ietf.org/html/rfc7946#section-3.2
*/
export interface Feature<T extends GeometryObject> extends GeoJsonObject {
type: 'Feature';
geometry: T;
properties: any;
* https://tools.ietf.org/html/rfc7946#section-3.2
*/
export interface Feature<G extends GeometryObject, P = any> extends GeoJsonObject {
type: "Feature";
geometry: G;
properties: P;
id?: string | number;

@@ -110,12 +112,12 @@ }

/***
* http://geojson.org/geojson-spec.html#feature-collection-objects
*/
export interface FeatureCollection<T extends GeometryObject> extends GeoJsonObject {
type: 'FeatureCollection';
features: Array<Feature<T>>;
* http://geojson.org/geojson-spec.html#feature-collection-objects
*/
export interface FeatureCollection<G extends GeometryObject, P = any> extends GeoJsonObject {
type: "FeatureCollection";
features: Array<Feature<G, P>>;
}
/***
* http://geojson.org/geojson-spec.html#coordinate-reference-system-objects
*/
* http://geojson.org/geojson-spec.html#coordinate-reference-system-objects
*/
export interface CoordinateReferenceSystem {

@@ -122,0 +124,0 @@ type: string;

{
"name": "@types/geojson",
"version": "1.0.5",
"version": "1.0.6",
"description": "TypeScript definitions for GeoJSON Format Specification Revision",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "cobster"
},
{
"name": "Arne Schubert",
"url": "https://github.com/atd-schubert",
"githubUsername": "atd-schubert"
}

@@ -21,4 +26,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "3a0ca828d3ecee52b8bfed4a8bd2a6360b7b21deef004689e65ab0773931d223",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "2a374692a48615d90fde45b274e247a1ec98647d93fe7c7ee355386108689bcd",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 11 Oct 2017 23:26:32 GMT
* Last updated: Wed, 01 Nov 2017 15:55:40 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: GeoJSON

# Credits
These definitions were written by Jacob Bruun <https://github.com/cobster>.
These definitions were written by Jacob Bruun <https://github.com/cobster>, Arne Schubert <https://github.com/atd-schubert>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc