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
15 lines
510 B
TypeScript
15 lines
510 B
TypeScript
// Type definitions for geojson2osm 0.0.5
|
|
// Project: https://github.com/Rub21/geojson2osm
|
|
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="geojson"/>
|
|
|
|
/**
|
|
* Converts GeoJSON features to OpenStreetMap XML.
|
|
* @param features Input features
|
|
* @returns OpenStreetMap XML
|
|
*/
|
|
export function geojson2osm(features: GeoJSON.Feature<any> | GeoJSON.FeatureCollection<any>): any
|