We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f743e3 commit 8471c2eCopy full SHA for 8471c2e
src/Transloadit.ts
@@ -713,7 +713,7 @@ export class Transloadit {
713
// todo use got.retry instead because we are no longer using FormData (which is a stream and can only be used once)
714
// https://github.com/sindresorhus/got/issues/1282
715
for (let retryCount = 0; ; retryCount++) {
716
- let form
+ let form: FormData | undefined
717
718
if (method === 'post' || method === 'put' || method === 'delete') {
719
form = new FormData()
@@ -722,7 +722,7 @@ export class Transloadit {
722
723
const requestOpts: OptionsOfJSONResponseBody = {
724
retry: this._gotRetry,
725
- body: form as FormData,
+ body: form,
726
timeout,
727
headers: {
728
'Transloadit-Client': `node-sdk:${version}`,
0 commit comments