@turf/invariant 7.1.0-alpha.7 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -12
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -66,8 +66,8 @@ Enforce expectations about types of GeoJSON objects for Turf.
|
|
|
66
66
|
|
|
67
67
|
## featureOf
|
|
68
68
|
|
|
69
|
-
Enforce expectations about types of [Feature][
|
|
70
|
-
Internally this uses [geojsonType][
|
|
69
|
+
Enforce expectations about types of [Feature][5] inputs for Turf.
|
|
70
|
+
Internally this uses [geojsonType][10] to judge geometry types.
|
|
71
71
|
|
|
72
72
|
### Parameters
|
|
73
73
|
|
|
@@ -81,12 +81,12 @@ Internally this uses [geojsonType][11] to judge geometry types.
|
|
|
81
81
|
|
|
82
82
|
## collectionOf
|
|
83
83
|
|
|
84
|
-
Enforce expectations about types of [FeatureCollection][
|
|
85
|
-
Internally this uses [geojsonType][
|
|
84
|
+
Enforce expectations about types of [FeatureCollection][11] inputs for Turf.
|
|
85
|
+
Internally this uses [geojsonType][10] to judge geometry types.
|
|
86
86
|
|
|
87
87
|
### Parameters
|
|
88
88
|
|
|
89
|
-
* `featureCollection` **[FeatureCollection][
|
|
89
|
+
* `featureCollection` **[FeatureCollection][11]** a FeatureCollection for which features will be judged
|
|
90
90
|
* `type` **[string][8]** expected GeoJSON type
|
|
91
91
|
* `name` **[string][8]** name of calling function
|
|
92
92
|
|
|
@@ -128,7 +128,7 @@ Get GeoJSON object's type, Geometry type is prioritize.
|
|
|
128
128
|
### Parameters
|
|
129
129
|
|
|
130
130
|
* `geojson` **[GeoJSON][7]** GeoJSON object
|
|
131
|
-
* `_name` **[string][8]
|
|
131
|
+
* `_name` **[string][8]?** 
|
|
132
132
|
* `name` **[string][8]** name of the variable to display in error message (unused) (optional, default `"geojson"`)
|
|
133
133
|
|
|
134
134
|
### Examples
|
|
@@ -166,13 +166,9 @@ Returns **[string][8]** GeoJSON type
|
|
|
166
166
|
|
|
167
167
|
[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error
|
|
168
168
|
|
|
169
|
-
[10]:
|
|
169
|
+
[10]: #geojsontype
|
|
170
170
|
|
|
171
|
-
[11]: #
|
|
172
|
-
|
|
173
|
-
[12]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
174
|
-
|
|
175
|
-
[13]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
171
|
+
[11]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
176
172
|
|
|
177
173
|
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
|
|
178
174
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/invariant",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf invariant module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -65,8 +65,9 @@
|
|
|
65
65
|
"typescript": "^5.2.2"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@turf/helpers": "^7.1.0
|
|
68
|
+
"@turf/helpers": "^7.1.0",
|
|
69
|
+
"@types/geojson": "^7946.0.10",
|
|
69
70
|
"tslib": "^2.6.2"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
72
73
|
}
|