mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

Type errors due to default values in type file #104

Closed rooby closed 10 months ago

rooby commented 10 months ago

There are a few types that supply a default value, which is not allowed in types. They are:

    options?: DownloadOptions & ZipOptions = {}
    options: DownloadOptions & ZipOptions = {},
    stream = false

They throw this error TS2371: A parameter initializer is only allowed in a function or constructor implementation.