Skip to content

Commit

Permalink
fix: fix it-to-browser-readablestream-types (#56)
Browse files Browse the repository at this point in the history
A typescript patch update has broken the types
  • Loading branch information
achingbrain authored Mar 29, 2023
1 parent e56c6ae commit cb34b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/it-to-browser-readablestream/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type Source<T> = SourceExt & UnderlyingSource<T>
/**
* Converts an (async) iterator into a WHATWG ReadableStream
*/
export default function itToBrowserReadableStream <T extends ArrayBufferView > (source: AsyncIterator<T> | Iterator<T>, queuingStrategy: QueuingStrategy<T> = {}): ReadableStream<T> {
const s: Source<T> = {
export default function itToBrowserReadableStream <T extends ArrayBufferView> (source: AsyncIterator<T> | Iterator<T>, queuingStrategy: QueuingStrategy<T> = {}): ReadableStream<T> {
const s: Source<ArrayBufferView> = {
_cancelled: false,

async start () {
Expand Down

0 comments on commit cb34b22

Please sign in to comment.