MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

type not found `FormData` in bitbucket.d.ts in declaration #72

Closed belangovan closed 4 years ago

belangovan commented 4 years ago

Missing FormData types in declaration modules kindly update it

node_modules/bitbucket/lib/bitbucket.d.ts:1946:12 - error TS2304: Cannot find name 'FormData'.

1946 _body: FormData


node_modules/bitbucket/lib/bitbucket.d.ts:1987:12 - error TS2304: Cannot find name 'FormData'.

1987     _body: FormData

node_modules/bitbucket/lib/bitbucket.d.ts:2927:12 - error TS2304: Cannot find name 'FormData'.

2927 _body: FormData


node_modules/bitbucket/lib/bitbucket.d.ts:2947:12 - error TS2304: Cannot find name 'FormData'.

2947     _body: FormData

node_modules/bitbucket/lib/bitbucket.d.ts:3035:13 - error TS2304: Cannot find name 'FormData'.

3035 _body?: FormData | Schema.AnyObject



node_modules/bitbucket/lib/bitbucket.d.ts:4274:13 - error TS2304: Cannot find name 'FormData'.

4274     _body?: FormData | Schema.AnyObject
belangovan commented 4 years ago

Kindly update types

MunifTanjim commented 4 years ago

Kindly add dom to lib in your tsconfig.json file:

{
    "compilerOptions": {
        "lib": [
            "dom"
        ]
    }
}
belangovan commented 4 years ago

thanks, updated. invalid bug