Skip to content

transferable streams is missing #38723

Closed
Closed

Description

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

Activity

  1. DanielRosenwasser commented on May 26, 2020

    @DanielRosenwasser
    Member

    Can you provide a minimal repro?

  2. jimmywarting commented on May 26, 2020

    @jimmywarting
    ContributorAuthor
    var stream = new ReadableStream()
    var stream2 = new ReadableStream()
    
    new MessageChannel().port1.postMessage(stream, [stream])
    window.postMessage(stream2, '*', [stream2])
    // worker.postMessage(...)
  3. IllusionMH commented on Jun 11, 2020

    @IllusionMH
    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.

  4. jakebailey commented on Jul 9, 2023

    @jakebailey
    Member

    This was fixed in #50884.

  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions