Skip to content

Commit 8471c2e

Browse files
committed
fix type
1 parent 9f743e3 commit 8471c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transloadit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export class Transloadit {
713713
// todo use got.retry instead because we are no longer using FormData (which is a stream and can only be used once)
714714
// https://github.com/sindresorhus/got/issues/1282
715715
for (let retryCount = 0; ; retryCount++) {
716-
let form
716+
let form: FormData | undefined
717717

718718
if (method === 'post' || method === 'put' || method === 'delete') {
719719
form = new FormData()
@@ -722,7 +722,7 @@ export class Transloadit {
722722

723723
const requestOpts: OptionsOfJSONResponseBody = {
724724
retry: this._gotRetry,
725-
body: form as FormData,
725+
body: form,
726726
timeout,
727727
headers: {
728728
'Transloadit-Client': `node-sdk:${version}`,

0 commit comments

Comments
 (0)