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

0.1.32 • Public • Published

Installation

npm install --save @types/polyline

Summary

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

Details

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

index.d.ts

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

interface Polyline {
    decode(string: string, precision?: number): number[][];
    encode(coordinate: number[][], precision?: number): string;
    fromGeoJSON(geojson: GeoJSON.LineString | GeoJSON.Feature<GeoJSON.LineString>, precision?: number): string;
}

declare var polyline: Polyline;

declare module "polyline" {
    export = polyline;
}

Additional Details

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

Credits

These definitions were written by Arseniy Maximov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/polyline

Weekly Downloads

273

Version

0.1.32

License

MIT

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • types