diff --git a/source/index.ts b/source/index.ts index 5bc717d..48b0da1 100644 --- a/source/index.ts +++ b/source/index.ts @@ -69,7 +69,7 @@ class APIClient { this.clientSecret = options.clientSecret; } - async uploadExisting(readStream: ReadableStream, token = this.fetchToken()): Promise { + async uploadExisting(readStream: ReadStream | ReadableStream, token = this.fetchToken()): Promise { if (!readStream) { throw new Error('Read stream missing'); }