-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error when compiling with Typescript #150
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
+1 - using this as a dep for any package consuming it will throw an error, unless you turn skipLibCheck to true. |
I'd be happy to contribute the fix, but hooking up a test for this is a little more involved, since it would require adding a verification build step on the declaration file, which might be a little involved for somebody not familiar with the layout of this repo. |
This stems from the fact that thread-stream provides implementation in a declaration file, which is not valid Typescript:
https://github.com/pinojs/thread-stream/blob/main/index.d.ts#L79-L82
As a workaround I used pnpm patch with these changes:
https://gist.github.com/chrisbenincasa/498e844fe7033c3230c8abe97c149602
The text was updated successfully, but these errors were encountered: