mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Make properties optional generic * Write tests for generic usage of gGeoJSON feature properties * Apply layout like recommend in the tslint default rule-set. * double quotes * 4 spaces indent (no tabs!) * Remove jsdoc typings and force typescript version 2.3 for sub type-definitions of geojson * apply change of andy-ms in PR #20933 * remove empty comments and set typescript version to 2.3 to fix linting errors * Add myself to the list of authors * Set TypeScript version to 2.3 for packages depending on geojson
19 lines
617 B
TypeScript
19 lines
617 B
TypeScript
// Type definitions for Polyline 0.1.0
|
|
// Project: https://github.com/mapbox/polyline
|
|
// Definitions by: Arseniy Maximov <https://github.com/Kern0>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <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;
|
|
} |