Skip to content

Commit

Permalink
Keep both
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 30, 2024
1 parent 1f16a5c commit 87fcbbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// https://developer.chrome.com/docs/webstore/api
// https://developer.chrome.com/docs/webstore/using-api

import { type Stream } from 'node:stream';

import { type ReadStream } from 'node:fs';
import { type JsonObject } from 'type-fest';

const rootURI = 'https://www.googleapis.com';
Expand Down Expand Up @@ -71,7 +70,7 @@ class APIClient {
this.clientSecret = options.clientSecret;
}

async uploadExisting(readStream: Stream, 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 87fcbbe

Please sign in to comment.