Skip to content

Commit

Permalink
refactor: remove generic from ReadableStream types
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 26, 2024
1 parent 3da3017 commit 9b00503
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/data-types/readable-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function readableStreamToArrayBuffer(
* @group ReadableStream
*/
export async function readableStreamToBlob(
readableStream: ReadableStream<Uint8Array>,
readableStream: ReadableStream,
options?: BlobPropertyBag,
): Promise<Blob> {
assertReadableStream(readableStream);
Expand All @@ -54,7 +54,7 @@ export async function readableStreamToBlob(
* @group ReadableStream
*/
export async function readableStreamToDataView(
readableStream: ReadableStream<Uint8Array>,
readableStream: ReadableStream,
): Promise<DataView> {
// assertReadableStream(readableStream);
return new DataView(await readableStreamToArrayBuffer(readableStream));
Expand All @@ -65,7 +65,7 @@ export async function readableStreamToDataView(
* @group ReadableStream
*/
export async function readableStreamToNumberArray(
readableStream: ReadableStream<Uint8Array>,
readableStream: ReadableStream,
): Promise<number[]> {
// assertReadableStream(readableStream);
return [...(await readableStreamToUint8Array(readableStream))];
Expand All @@ -76,7 +76,7 @@ export async function readableStreamToNumberArray(
* @group ReadableStream
*/
export async function readableStreamToString(
readableStream: ReadableStream<Uint8Array>,
readableStream: ReadableStream,
): Promise<string> {
// assertReadableStream(readableStream);
const blob = await readableStreamToBlob(readableStream);
Expand All @@ -88,7 +88,7 @@ export async function readableStreamToString(
* @group ReadableStream
*/
export async function readableStreamToUint8Array(
readableStream: ReadableStream<Uint8Array>,
readableStream: ReadableStream,
): Promise<Uint8Array> {
// assertReadableStream(readableStream);
const arrayBuffer = await readableStreamToArrayBuffer(readableStream);
Expand Down

0 comments on commit 9b00503

Please sign in to comment.