Socket
Socket
Sign inDemoInstall

@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 7946.0.2 to 7946.0.3

18

geojson/index.d.ts

@@ -6,2 +6,3 @@ // Type definitions for geojson 7946.0

// Jeff Jacobson <https://github.com/JeffJacobson>
// Ilia Choly <https://github.com/icholy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -67,2 +68,7 @@ // TypeScript Version: 2.3

/**
* Union of GeoJSON objects.
*/
export type GeoJSON = Geometry | Feature | FeatureCollection;
/**
* A geometry object.

@@ -76,2 +82,8 @@ * https://tools.ietf.org/html/rfc7946#section-3

/**
* Union of geometry objects.
* https://tools.ietf.org/html/rfc7946#section-3
*/
export type Geometry = Point | MultiPoint | LineString | Polygon | MultiPolygon | GeometryCollection;
/**
* Point geometry object.

@@ -136,3 +148,3 @@ * https://tools.ietf.org/html/rfc7946#section-3.1.2

type: "GeometryCollection";
geometries: Array<Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon>;
geometries: Geometry[];
}

@@ -146,3 +158,3 @@

*/
export interface Feature<G extends GeometryObject | null, P = GeoJsonProperties> extends GeoJsonObject {
export interface Feature<G extends GeometryObject | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
type: "Feature";

@@ -168,5 +180,5 @@ /**

*/
export interface FeatureCollection<G extends GeometryObject | null, P = GeoJsonProperties> extends GeoJsonObject {
export interface FeatureCollection<G extends GeometryObject | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
type: "FeatureCollection";
features: Array<Feature<G, P>>;
}

9

geojson/package.json
{
"name": "@types/geojson",
"version": "7946.0.2",
"version": "7946.0.3",
"description": "TypeScript definitions for geojson",

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

"githubUsername": "JeffJacobson"
},
{
"name": "Ilia Choly",
"url": "https://github.com/icholy",
"githubUsername": "icholy"
}

@@ -31,4 +36,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "87518c8fc61a1a05d50991662799755ffdeb62f472cfa4ba6add191bf0c90bb1",
"typesPublisherContentHash": "41469f8621e41ac21b62ff5dbf1590eb9d7c406b95d2532f4a7b35843d78ad3a",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Thu, 08 Mar 2018 23:07:44 GMT
* Last updated: Thu, 26 Apr 2018 22:15:53 GMT
* Dependencies: none

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

# Credits
These definitions were written by Jacob Bruun <https://github.com/cobster>, Arne Schubert <https://github.com/atd-schubert>, Jeff Jacobson <https://github.com/JeffJacobson>.
These definitions were written by Jacob Bruun <https://github.com/cobster>, Arne Schubert <https://github.com/atd-schubert>, Jeff Jacobson <https://github.com/JeffJacobson>, Ilia Choly <https://github.com/icholy>.
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