@types/wellknown
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -14,2 +14,7 @@ // Type definitions for wellknown 0.5 | ||
export interface GeoJSONGeometryCollection { | ||
type: "GeometryCollection"; | ||
geometries: GeoJSONGeometry[]; | ||
} | ||
export type GeoJSONPoint = Geometry<"Point", GeoJSONPosition>; | ||
@@ -33,2 +38,3 @@ export type GeoJSONMultiPoint = Geometry<"MultiPoint", GeoJSONPosition[]>; | ||
| GeoJSONMultiPolygon | ||
| GeoJSONGeometryCollection | ||
| null; | ||
@@ -35,0 +41,0 @@ |
{ | ||
"name": "@types/wellknown", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "TypeScript definitions for wellknown", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wellknown", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "5996460fe5b6a57c3f581ea2c111a4f6bda5863481ed0fc3736c60d735e644aa", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "08ed3fee8f95436b343ed3dff58b9444fd9d8c975de5864f047062e2e726d381", | ||
"typeScriptVersion": "3.9" | ||
} |
@@ -9,5 +9,50 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wellknown. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wellknown/index.d.ts) | ||
````ts | ||
// Type definitions for wellknown 0.5 | ||
// Project: https://github.com/mapbox/wellknown#readme | ||
// Definitions by: Davide Scalzo <https://github.com/davodesign84> | ||
// Yair Tawil <https://github.com/yairtawil> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export type GeoJSONPosition = [number, number] | [number, number, number]; | ||
export interface Geometry<T, C> { | ||
type: T; | ||
coordinates: C; | ||
} | ||
export interface GeoJSONGeometryCollection { | ||
type: "GeometryCollection"; | ||
geometries: GeoJSONGeometry[]; | ||
} | ||
export type GeoJSONPoint = Geometry<"Point", GeoJSONPosition>; | ||
export type GeoJSONMultiPoint = Geometry<"MultiPoint", GeoJSONPosition[]>; | ||
export type GeoJSONLineString = Geometry<"LineString", GeoJSONPosition[]>; | ||
export type GeoJSONMultiLineString = Geometry<"MultiLineString", GeoJSONPosition[][]>; | ||
export type GeoJSONPolygon = Geometry<"Polygon", GeoJSONPosition[][]>; | ||
export type GeoJSONMultiPolygon = Geometry<"MultiPolygon", GeoJSONPosition[][][]>; | ||
export type GeoJSONGeometry = | ||
| GeoJSONPoint | ||
| GeoJSONMultiPoint | ||
| GeoJSONLineString | ||
| GeoJSONMultiLineString | ||
| GeoJSONPolygon | ||
| GeoJSONMultiPolygon | ||
| GeoJSONGeometryCollection | ||
| null; | ||
export function parse(input: string): GeoJSONGeometry; | ||
export function stringify(gj: GeoJSONGeometry): string; | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 16 Jan 2020 20:52:25 GMT | ||
* Last updated: Wed, 20 Apr 2022 19:01:26 GMT | ||
* Dependencies: none | ||
@@ -17,2 +62,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Davide Scalzo (https://github.com/davodesign84), and Yair Tawil (https://github.com/yairtawil). | ||
These definitions were written by [Davide Scalzo](https://github.com/davodesign84), and [Yair Tawil](https://github.com/yairtawil). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5448
31
1
62