Skip to content

Commit

Permalink
Merge pull request #105 from rooby/type-fixes
Browse files Browse the repository at this point in the history
Fix broken types in index.d.ts
  • Loading branch information
sheindel authored Aug 23, 2023
2 parents 5f0b705 + 80da96f commit 8768a97
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
declare module "@mapbox/shp-write" {
export enum OGCGeometry {
NULL,
POINT,
POLYLINE,
POLYGON,
MULTIPOINT,
POINTZ,
POLYLINEZ,
POLYGONZ,
MULTIPOINTZ,
POINTM,
POLYLINEM,
POLYGONM,
MULTIPOINTM,
MULTIPATCH,
}
export type OGCGeometry =
'NULL' |
'POINT' |
'POLYLINE' |
'POLYGON' |
'MULTIPOINT' |
'POINTZ' |
'POLYLINEZ' |
'POLYGONZ' |
'MULTIPOINTZ' |
'POINTM' |
'POLYLINEM' |
'POLYGONM' |
'MULTIPOINTM' |
'MULTIPATCH';

export interface DownloadOptions {
folder?: string;
Expand Down Expand Up @@ -50,7 +49,7 @@ declare module "@mapbox/shp-write" {

export function download(
geojson: GeoJSON.FeatureCollection,
options?: DownloadOptions & ZipOptions = {}
options?: DownloadOptions & ZipOptions
): void;

export function write(
Expand All @@ -69,6 +68,6 @@ declare module "@mapbox/shp-write" {

export function zip<T extends OutputType>(
geojson: GeoJSON.FeatureCollection,
options: DownloadOptions & ZipOptions = {},
stream = false): Promise<OutputByType[T]>;
options?: DownloadOptions & ZipOptions,
stream?: boolean): Promise<OutputByType[T]>;
}

0 comments on commit 8768a97

Please sign in to comment.