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

Blob full Node.js compatibility #64

Open
pi0 opened this issue Jan 3, 2023 · 0 comments
Open

Blob full Node.js compatibility #64

pi0 opened this issue Jan 3, 2023 · 0 comments

Comments

@pi0
Copy link
Member

pi0 commented Jan 3, 2023

Currently, we alias Node.js buffer.Blob to Web Blob. Types are not fully compatible.

Conversion of type '{ new (blobParts?: BlobPart[] | undefined, options?: BlobPropertyBag | undefined): Blob; prototype: Blob; }' to type 'typeof Blob' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
  Types of construct signatures are incompatible.
    Type 'new (blobParts?: BlobPart[] | undefined, options?: BlobPropertyBag | undefined) => Blob' is not assignable to type 'new (sources: (Blob | BinaryLike)[], options?: BlobOptions | undefined) => Blob'.
      Construct signature return types 'Blob' and 'Blob' are incompatible.
        The types returned by 'stream()' are incompatible between these types.
          Type 'ReadableStream<Uint8Array>' is missing the following properties from type 'ReadableStream<any>': values, [Symbol.asyncIterator]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant