-
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
Encoding objects with oneof and undefined vs null #808
Comments
If I'm not mistaken, your encode method should be generic or something.
Haven't looked through this in detail, though, as it seems to be a TypeScript usage issue. |
It is a typescript/jsdoc issue yeah, it's because the type of an embedded message is |
See also: #826 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
protobuf.js version:6.7.3
Here is example proto file that describes message format that could contain one of some Types in body.
Proto files are compiled into js with pbjs.
Later in typescript:
And here typescript throws error
Should I set to null all 100499 objects or there is some way to do that automatically?
The text was updated successfully, but these errors were encountered: