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

1.0.5 • Public • Published

Installation

npm install --save @types/mapbox__polyline

Summary

This package contains type definitions for @mapbox/polyline (https://github.com/mapbox/polyline).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline.

index.d.ts

/// <reference types="geojson" />

export function decode(string: string, precision?: number): Array<[number, number]>;
export function encode(coordinates: Array<[number, number]>, precision?: number): string;
export function fromGeoJSON(
    geojson: GeoJSON.LineString | GeoJSON.Feature<GeoJSON.LineString>,
    precision?: number,
): string;
export function toGeoJSON(string: string, precision?: number): GeoJSON.LineString;

export as namespace polyline;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/geojson

Credits

These definitions were written by Arseniy Maximov, and Marko Klopets.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mapbox__polyline

Weekly Downloads

44,279

Version

1.0.5

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • types