diff --git a/packages/turf-circle/index.d.ts b/packages/turf-circle/index.d.ts new file mode 100644 index 0000000000..1aa513362b --- /dev/null +++ b/packages/turf-circle/index.d.ts @@ -0,0 +1,28 @@ +/// + +/*** + * http://turfjs.org/docs/#circle + */ +declare function circle( + center: GeoJSON.Feature, + radius: number, + steps?: number, + units?: string): GeoJSON.Feature; + +declare namespace circle { } +export = circle + +// import * as circle from './index' + +// const center: GeoJSON.Feature = { +// type: "Feature", +// properties: {}, +// geometry: {type: "Point", coordinates: [-75.343, 39.984]} +// }; +// const unit = "kilometers"; +// const radius = 5; +// const steps = 10; + +// circle(center, radius); +// circle(center, radius, steps); +// circle(center, radius, steps, unit); \ No newline at end of file