Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transferable streams is missing #38723

Closed
jimmywarting opened this issue May 22, 2020 · 4 comments
Closed

transferable streams is missing #38723

jimmywarting opened this issue May 22, 2020 · 4 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19
Milestone

Comments

@jimmywarting
Copy link
Contributor

jimmywarting commented May 22, 2020

The error i got from using postMessage was:

  Overload 1 of 2, '(message: any, transfer: Transferable[]): void', gave the following error.
    Type 'ReadableStream<any>' is not assignable to type 'Transferable'.
      Type 'ReadableStream<any>' is missing the following properties from type 'OffscreenCanvas': height, width, convertToBlob, getContext, and 4 more.

https://chromestatus.com/feature/5298733486964736

@DanielRosenwasser
Copy link
Member

Can you provide a minimal repro?

@jimmywarting
Copy link
Contributor Author

jimmywarting commented May 26, 2020

var stream = new ReadableStream()
var stream2 = new ReadableStream()

new MessageChannel().port1.postMessage(stream, [stream])
window.postMessage(stream2, '*', [stream2])
// worker.postMessage(...)

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Jun 11, 2020
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jun 11, 2020
@IllusionMH
Copy link
Contributor

Is it a really bug at this moment?
Because at this point it looks like only Chrome has this feature and it is behind a flag.

@sandersn sandersn added the PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19 label Sep 18, 2020
@jakebailey
Copy link
Member

This was fixed in #50884.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19
Projects
None yet
Development

No branches or pull requests

6 participants