Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/turf-meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Type: [Function][1]
* `multiFeatureIndex` **[number][3]** The current index of the Multi-Feature being processed.
* `geometryIndex` **[number][3]** The current index of the Geometry being processed.

Returns **void** 
Returns **(void | `false`)** Return false to stop iterating

## coordEach

Expand Down Expand Up @@ -122,7 +122,7 @@ Type: [Function][1]
* `currentProperties` **[GeoJsonProperties][7]** The current Properties being processed.
* `featureIndex` **[number][3]** The current index of the Feature being processed.

Returns **void** 
Returns **(void | `false`)** Returning false to stop iterating

## propEach

Expand Down Expand Up @@ -218,7 +218,7 @@ Type: [Function][1]
* `currentFeature` **[Feature][7]\<any>** The current Feature being processed.
* `featureIndex` **[number][3]** The current index of the Feature being processed.

Returns **void**&#x20;
Returns **(void | `false`)** Return false to stop iterating

## featureEach

Expand Down Expand Up @@ -543,7 +543,7 @@ Type: [Function][1]
* `geometryIndex` **[number][3]** The current index of the Geometry being processed.
* `segmentIndex` **[number][3]** The current index of the Segment being processed.

Returns **void**&#x20;
Returns **(void | `false`)** Return false to stop iterating

## segmentEach

Expand Down Expand Up @@ -659,7 +659,7 @@ Type: [Function][1]
* `multiFeatureIndex` **[number][3]** The current index of the Multi-Feature being processed
* `geometryIndex` **[number][3]** The current index of the Geometry being processed

Returns **void**&#x20;
Returns **(void | `false`)** Return false to stop iterating

## lineEach

Expand Down
4 changes: 2 additions & 2 deletions packages/turf-meta/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const suite = new Benchmark.Suite("turf-meta");
* findPoint - polygons x 2,160,583 ops/sec ±1.06% (87 runs sampled)
*/
Object.keys(fixtures).forEach((name) => {
const geojson = fixtures[name];
const geojson = (fixtures as any)[name];
const noop = () => {
/* no-op */
};
Expand All @@ -95,4 +95,4 @@ Object.keys(fixtures).forEach((name) => {
.add("findPoint - " + name, () => meta.findPoint(geojson));
});

suite.on("cycle", (e) => console.log(String(e.target))).run();
suite.on("cycle", (e: any) => console.log(String(e.target))).run();
336 changes: 0 additions & 336 deletions packages/turf-meta/index.d.ts

This file was deleted.

Loading