-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Typescript definitions A to D #515
- Loading branch information
1 parent
1ec968d
commit 5360d47
Showing
17 changed files
with
143 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#area | ||
*/ | ||
declare function area(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): number; | ||
declare namespace area { } | ||
export = area; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#bboxpolygon | ||
*/ | ||
declare function bboxPolygon(bbox: Array<number>): GeoJSON.Feature<GeoJSON.Polygon>; | ||
declare namespace bboxPolygon { } | ||
export = bboxPolygon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#bearing | ||
*/ | ||
declare function bearing( | ||
start: GeoJSON.Feature<GeoJSON.Point>, | ||
end: GeoJSON.Feature<GeoJSON.Point>): number; | ||
declare namespace bearing { } | ||
export = bearing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#bezier | ||
*/ | ||
declare function bezier( | ||
line: GeoJSON.Feature<GeoJSON.LineString>, | ||
resolution?: number, | ||
sharpness?: number): GeoJSON.Feature<GeoJSON.LineString>; | ||
declare namespace bezier { } | ||
export = bezier; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#buffer | ||
*/ | ||
declare function buffer( | ||
features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>, | ||
radius?: number, | ||
unit?: string): GeoJSON.Feature<GeoJSON.LineString>; | ||
declare namespace buffer { } | ||
export = buffer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#center | ||
*/ | ||
declare function centerOfMass(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): GeoJSON.Feature<GeoJSON.Point>; | ||
declare namespace centerOfMass { } | ||
export = centerOfMass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#center | ||
*/ | ||
declare function center(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): GeoJSON.Feature<GeoJSON.Point>; | ||
declare namespace center { } | ||
export = center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#centroid | ||
*/ | ||
declare function centroid(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): GeoJSON.Feature<GeoJSON.Point>; | ||
declare namespace centroid { } | ||
export = centroid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#collect | ||
*/ | ||
declare function collect( | ||
polygons: GeoJSON.FeatureCollection<GeoJSON.Polygon>, | ||
points: GeoJSON.FeatureCollection<GeoJSON.Point>, | ||
inProperty: string, | ||
outProperty: string): GeoJSON.FeatureCollection<GeoJSON.Polygon>; | ||
declare namespace collect { } | ||
export = collect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#combine | ||
*/ | ||
declare function combine(features: GeoJSON.FeatureCollection<GeoJSON.Point | GeoJSON.LineString | GeoJSON.Polygon>): GeoJSON.FeatureCollection<GeoJSON.MultiPoint | GeoJSON.MultiLineString | GeoJSON.MultiPolygon>; | ||
declare namespace combine { } | ||
export = combine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#concave | ||
*/ | ||
declare function concave( | ||
points: GeoJSON.FeatureCollection<GeoJSON.Point>, | ||
maxEdge: number, | ||
units: string): GeoJSON.Feature<GeoJSON.Polygon>; | ||
declare namespace concave { } | ||
export = concave; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#convex | ||
*/ | ||
declare function convex(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): GeoJSON.Feature<GeoJSON.Polygon>; | ||
declare namespace convex { } | ||
export = convex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#destination | ||
*/ | ||
declare function destination( | ||
from: GeoJSON.Feature<GeoJSON.Point>, | ||
distance: number, | ||
bearing: number, | ||
units?: string): GeoJSON.Feature<GeoJSON.Point>; | ||
declare namespace destination { } | ||
export = destination; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#difference | ||
*/ | ||
declare function difference(poly1: GeoJSON.Feature<GeoJSON.Polygon>, poly2: GeoJSON.Feature<GeoJSON.Polygon>): GeoJSON.Feature<GeoJSON.Polygon>; | ||
declare namespace difference { } | ||
export = difference; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// <reference types="geojson" /> | ||
|
||
/*** | ||
* http://turfjs.org/docs/#distance | ||
*/ | ||
declare function distance( | ||
from: GeoJSON.Feature<GeoJSON.Point>, | ||
to: GeoJSON.Feature<GeoJSON.Point>, | ||
units?: string): number; | ||
declare namespace distance { } | ||
export = distance; |