-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TypeScript definitions inconsistent #503
Comments
Thanks, I somewhat expected some issues with the automatically generated tsds. Will see what I can do! |
This is now pulling long.js and node.js definitions post install (mostly for me to see the errors you described) and uses Uint8Array to reference any kind of buffer, which should be consistent enough for node.js as buffers are Uint8Arrays nowadays. Let me know what's working and what's not! |
Feel free to reopen if there are still any issues. |
Hey, thanks @dcodeIO. It solved the mismatching types issue, but there's still errors happening. I've created a repository that makes it easy to reproduce the problem here: https://github.com/endel/protobufjs-tsc-error/
Cheers! |
Does it work when you change the references at the top to /// <reference types="node" />
/// <reference types="long" /> ? |
@dcodeIO unfortunately not. Same thing. 😢 |
What happens when you explicitly add the following to your package's dependencies?
|
Hey, @dcodeIO I've just tested with your recent fixes on master and the only error that still happens is:
I could solve it by adding this line to the end of the
Cheers! |
Actually, there are loads of other problems now that I'm finally able to require it. |
Hey there,
I've tried to use v6.0.0 with TypeScript and unfortunately some of the definitions are inconsistent :(
Here's the errors I'm having:
Cheers!
The text was updated successfully, but these errors were encountered: