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

node URL.createObjectURL blob compatibility #65

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

node URL.createObjectURL blob compatibility #65

pi0 opened this issue Jan 3, 2023 · 0 comments

Comments

@pi0
Copy link
Member

pi0 commented Jan 3, 2023

URL from node:url is incompatible with web URL

Conversion of type '{ new (url: string | URL, base?: string | URL | undefined): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }' to type 'typeof URL' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
  Types of property 'createObjectURL' are incompatible.
    Type '(obj: Blob | MediaSource) => string' is not comparable to type '(blob: Blob) => string'.
      Types of parameters 'obj' and 'blob' are incompatible.
        Type 'Blob' is not comparable to type 'Blob | MediaSource'.
          Property 'prototype' is missing in type 'import("buffer").Blob' but required in type 'Blob'.ts(2352)

Related #64

@pi0 pi0 changed the title URL.createObjectURL blob compatibility node URL.createObjectURL blob compatibility Jan 3, 2023
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