-
Notifications
You must be signed in to change notification settings - Fork 349
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
Consider making $type optional when generating the type registry #803
Comments
Ah sure, that sgtm. Maybe like an |
My idea was sort of to make the type field because then writing const message: Message = {
...
} also works. I've checked to make sure making the field optional does not break anything, and it doesn't. |
My concern about We already have the But then internally within |
I see. I might add an option like |
Hm, isn't it supposed to be non-observable whether a field was not-initialized or initialized-as-empty? What sort of fields do you need to stay non-empty? |
That's only non-observable on proto3, but I am using some very backwards compatible services that read the presence of a field in proto2. |
Ah I see...yeah, if it's not too disruptive to the code generation, I think a flag for that behavior sgtm. Afaiu that would let us close out #139 ? Which would be pretty great if so. |
I feel like that issue is already fixed? I'm not sure if I'm missing anything but it sounds like they just want |
Fixed in #811 |
It'd be cumbersome to type
I'll gladly PR this if approved
The text was updated successfully, but these errors were encountered: