Commit Graph
16 Commits
Author SHA1 Message Date
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
woutervh- bb7103dc31 Added missing FeatureCollection type field (#23249) 2018-01-29 11:44:42 -08:00
Jeff Jacobson 39d7d3ab39 fixed type def 2017-11-21 15:38:42 -08:00
Jeff Jacobson 5c544da4bd Added missing space 2017-11-21 10:26:40 -08:00
Jeff Jacobson f12705b83b Made revisions suggested by other devs.
* Corrected number of elements for 3D bounding boxes. (Mistakenly had five elements instead of six.)
* Renamed "BoundingBox" to "BBox" to shorten name.
* Restored generic types to Feature and FeatureCollection.
* Removed the support for foreign members on GeoJsonObject. Users can instead extend the interface or use "&".
2017-11-20 16:30:31 -08:00
Jeff Jacobson 89667eb5cb Updated GeoJSON type definitions
Updated to match RFC 7946 (https://tools.ietf.org/html/rfc7946).
* Removed coordinate reference system types due to their removal from the standard. (https://tools.ietf.org/html/rfc7946#appendix-B.1)
* Position arrays are now restricted to either two or three positions. (https://tools.ietf.org/html/rfc7946#section-3.1.1)
* Feature and feature collection types are no longer generic.
* Added support for foreign members. (https://tools.ietf.org/html/rfc7946#section-6.1)
2017-11-16 15:11:39 -08:00
Arne Schubert 216ea719fa GeoJSON: Enhance with generic properties (#20932)
* Make properties optional generic

* Write tests for generic usage of gGeoJSON feature properties

* Apply layout like recommend in the tslint default rule-set.

* double quotes
* 4 spaces indent (no tabs!)

* Remove jsdoc typings and force typescript version 2.3 for sub type-definitions of geojson

* apply change of andy-ms in PR #20933

* remove empty comments and set typescript version to 2.3 to fix linting errors

* Add myself to the list of authors

* Set TypeScript version to 2.3 for packages depending on geojson
2017-11-01 08:40:26 -07:00
lucideer dd06dd6ece [geojson] Allow numeric ID on GeoJSON Feature (#20320)
* Allow numeric ID on GeoJSON Feature

* Allowing numeric ID on GeoJSON features in d3-geo (after CI failure from changes to geojson typings)
2017-10-11 16:18:18 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Denis 66b7f0819d Allow access to custom GeoJSON properties @types/geojson (#19845)
* Allow access to custom GeoJSON properties @types/geojson

* Specify Typescript Version 2.2

* GeoJSON replace properties with "any"
2017-09-26 15:54:09 -07:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Andy e50f8878a5 Use new strict-export-declare-modifiers lint rule (#15844) 2017-04-14 08:20:12 -07:00
Andy bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Andy b6c343f2b3 Apply new lint rules to yet more packages (#15548)
* Apply new lint rules to yet more packages

* Fix leaflet lint
2017-03-31 11:01:26 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00