Skip to content

Commit

Permalink
Fix uploadExisting types
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Sep 30, 2024
1 parent 858ffb7 commit a95681b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class APIClient {
this.clientSecret = options.clientSecret;
}

async uploadExisting(readStream: ReadableStream, token = this.fetchToken()): Promise<JsonObject> {
async uploadExisting(readStream: ReadStream | ReadableStream, token = this.fetchToken()): Promise<JsonObject> {
if (!readStream) {
throw new Error('Read stream missing');
}
Expand Down

0 comments on commit a95681b

Please sign in to comment.