mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Changed parameter type to allow 'GeoJSON.Feature' objects in 'polyline'.
This commit is contained in:
parent
e6cbee8bc9
commit
e55d1b91f9
1
geojson/geojson.d.ts
vendored
1
geojson/geojson.d.ts
vendored
@ -44,7 +44,6 @@ declare module GeoJSON {
|
||||
*/
|
||||
export interface MultiPoint extends GeometryObject
|
||||
{
|
||||
|
||||
coordinates: Position[]
|
||||
}
|
||||
|
||||
|
||||
2
polyline/polyline.d.ts
vendored
2
polyline/polyline.d.ts
vendored
@ -8,7 +8,7 @@
|
||||
interface Polyline {
|
||||
decode(string: string, precision?: number): number[][];
|
||||
encode(coordinate: number[][], precision?: number): string;
|
||||
fromGeoJSON(geojson: GeoJSON.GeoJsonObject, precision?: number): string;
|
||||
fromGeoJSON(geojson: GeoJSON.LineString | GeoJSON.Feature, precision?: number): string;
|
||||
}
|
||||
|
||||
declare var polyline: Polyline;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user