mapbox / shp-write

create and write to shapefiles in pure javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type errors due to default values in type file

rooby opened this issue · comments

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.