@types/circle-to-polygon
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

Installation

npm install --save @types/circle-to-polygon

Summary

This package contains type definitions for circle-to-polygon (https://github.com/gabzim/circle-to-polygon).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/circle-to-polygon.

index.d.ts

import * as GeoJSON from "geojson";

interface PolygonConfig {
    earthRadius?: number;
    numberOfEdges?: number;
    bearing?: number;
    rightHandRule?: boolean;
}

declare function circleToPolygon(
    center: GeoJSON.Position,
    radius: number,
    numberOfSegments?: number | PolygonConfig,
): GeoJSON.Polygon;

export = circleToPolygon;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/geojson

Credits

These definitions were written by Jan Zak.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/circle-to-polygon

Weekly Downloads

554

Version

2.2.3

License

MIT

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • types