diff --git a/dist/index.d.ts b/dist/index.d.ts index 83e5f30..5f2852d 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -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; @@ -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( @@ -69,6 +68,6 @@ declare module "@mapbox/shp-write" { export function zip( geojson: GeoJSON.FeatureCollection, - options: DownloadOptions & ZipOptions = {}, - stream = false): Promise; + options?: DownloadOptions & ZipOptions, + stream?: boolean): Promise; }