Skip to content
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

Add undefined type to optional properties in protoc-gen-es TypeScript #1037

Conversation

MikelInesta
Copy link

Hey 😃

On TypeScript generated code, this generates fields marked with the optional label in proto as name?: typing | undefined instead of name?: typing.

This would allow to work with the exactOptionalPropertyTypes rule enabled so optional properties are explicitly possibly undefined.

@CLAassistant
Copy link

CLAassistant commented Dec 16, 2024

CLA assistant check
All committers have signed the CLA.

@MikelInesta MikelInesta deleted the add_undefined_type_to_optional_properties branch December 18, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants