-
Notifications
You must be signed in to change notification settings - Fork 30
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
Upgrading to Typescript 4.4 results in error TS2345 when using web-streams-polyfill #85
Comments
Could you share some example code, or a minimal reproduction case? I'm not sure which function you're calling that accepts a That said, I do have a test for this specific case, but I had to disable it a while ago because of some mismatches. I'll see if I can re-enable it. 🙂 |
Thanks for the fix @MattiasBuelens and sorry I couldn't provide more info. I'll be sure to test it when possible. |
Uhoh, looks like there's more to this. I've only fixed the issues with the version of TypeScript that I was using in this project (4.2), but TypeScript 4.4 has more incompatibilities. I'll see what I can do. |
Currently, the tests find 4 type errors: npm run test:types
If I fix the npm run test:types after local fix
This one's more difficult... Either way, you'll still need to wait for the upstream fixes to land before the polyfill |
This should be fixed now. All type compatibility tests for |
I get error like this:
error TS2345: Argument of type 'ReadableStream' is not assignable to parameter of type 'string | ReadableStream | Uint8Array'.
Type 'import("/home/bjorn/code/flatgeobuf/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill").ReadableStream' is not assignable to type 'ReadableStream'.
The text was updated successfully, but these errors were encountered: