-
Notifications
You must be signed in to change notification settings - Fork 71
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
Remove $typeName and $unknown #1016
Comments
You can remove properties (and do much more) with mapped types. Here is an example for a Connect client that does not make properties optional, and strips the The |
I understand that it's possible to implement this; however, same as the timestamp issue, I thought this could be something incorporated as a plugin or something. This way, it would automatically generate the desired outcome and we won't need to create wrappers, etc. |
Do you mean a plugin option to disable ts-proto has many plugin options and basically no runtime library. Protobuf-ES has a different approach - it generates very little code, hosts most functionality in the runtime library, and aims for a single way to do things. The practical advantage is that we can test correctness, which is infeasible with a large number of plugin options that can affect each other. Depending on your use case, it might be worth to write a Protobuf plugin that emits types without Regardless of the concrete way to disable |
Hi,
Is there any way to exclude $typeName and $unknown from the types? we don't want to expose this to our clients:
Thanks
The text was updated successfully, but these errors were encountered: