-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
[7.0.0][type regression] Unpack is not assignable to NodeJS.WritableStream #409
Comments
Same:
|
Same:
|
I'm seeing the same error, but using the
|
I think the WritableStream type in I'd like to find time to go through and update minipass to make TS know that it's compatible with the writable stream types in @types/node (because, in practice, it actually is), but to be honest, I don't see myself getting to that any time soon. So, patch welcome (over there, not here), but in the meantime, just cast and go on with life. I'm going to lock this thread to prevent a flood of "me too" comments. If someone wants to actually work on this, post an issue or PR over on https://github.com/isaacs/minipass to fix the types up to play nicer with @types/node. |
Ok, so this is one of those rare examples where my terrible inability estimate time meant I guessed it would take much longer to get to this than it actually did. (Much more often, I come across an issue ending with a comment from me saying I'd have some time to get to something "next week", posted 3 years ago or something lol) This should be fixed in 7.1, please let me know if it is not. It just required some very tedious type-checking for the annoyingly variadic optional arguments to |
Works. Thank you. The minipass dedupe is also appreciated. |
I'm using 7.1.0 and I'm seeing what looks like this issue:
|
However, I also see this issue on 6.2.1, so it could be something else. |
^ also seeing a similar error
|
Also still seeing this error:
we're using |
@viceice can you please open a new issue with reproduction steps? The more minimal the better. I suspect it has something to do with the typescript and/or @types/node versions in play. |
This used to work with
tar@6
and@types/tar
:With v7 there's a type error about
Unpack
not being assignable toNodeJS.WritableStream
.Working around by casting it to
as ReturnType<typeof extract> & NodeJS.WritableStream
... as it seems to still work in runtime.The text was updated successfully, but these errors were encountered: