Skip to content

Commit

Permalink
Use Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Sep 30, 2024
1 parent a95681b commit 1f16a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// https://developer.chrome.com/docs/webstore/api
// https://developer.chrome.com/docs/webstore/using-api

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

Check failure on line 5 in source/index.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no empty line between import groups

Check failure on line 5 in source/index.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no empty line between import groups

Check failure on line 5 in source/index.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no empty line between import groups

Check failure on line 5 in source/index.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no empty line between import groups

import { type JsonObject } from 'type-fest';

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

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

0 comments on commit 1f16a5c

Please sign in to comment.