-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.d.ts
36 lines (30 loc) · 1.36 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* import type {
Feature,
FeatureCollection,
GeoJsonObject,
GeoJsonProperties,
GeoJsonTypes,
Geometry
} from "geojson"; */
declare module "@tmcw/togeojson" {
export function kml(doc: Document): GeoJSON.FeatureCollection;
export function kml<TProperties extends GeoJSON.GeoJsonProperties>(
doc: Document
): GeoJSON.FeatureCollection<GeoJSON.Geometry, TProperties>;
export function kmlGen(doc: Document): Generator<GeoJSON.Feature, void, boolean>;
export function kmlGen<TProperties extends GeoJSON.GeoJsonProperties>(
doc: Document
): Generator<GeoJSON.Feature<GeoJSON.Geometry, TProperties>, void, boolean>;
export function gpx(doc: Document): GeoJSON.FeatureCollection;
export function gpx<TProperties extends GeoJSON.GeoJsonProperties>(
doc: Document
): GeoJSON.FeatureCollection<GeoJSON.Geometry>;
export function gpxGen(doc: Document): Generator<GeoJSON.Feature, void, boolean>;
export function gpxGen<TProperties extends GeoJSON.GeoJsonProperties>(
doc: Document
): Generator<GeoJSON.Feature<GeoJSON.Geometry, TProperties>, void, boolean>;
export function tcx(doc: Document): GeoJSON.FeatureCollection;
export function tcx<TProperties extends GeoJSON.GeoJsonProperties>(
doc: Document
): GeoJSON.FeatureCollection<GeoJSON.Geometry, GeoJSON.GeoJsonProperties>;
}