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

fix: exclude map entry message from typings, fix optional values #452

Merged
merged 4 commits into from
Feb 26, 2019

Conversation

shaxbee
Copy link
Contributor

@shaxbee shaxbee commented Feb 3, 2019

This PR brings bindings in line with ts-protoc-gen.

Do not generate typings for proto map entry type.
Fix optionality of repeated fields - array fields are required.
Add has$field_name$ method for message fields.
Add add$element_name$ method for repeated fields.
Support [jstype=JS_STRING] field option.
Prefix reserved fields in AsObject with pb_ prefix.

Example:
https://github.com/shaxbee/grpc-web-dts-example/blob/master/map-asobject/example/example_pb.d.ts

@shaxbee shaxbee force-pushed the map-asobject branch 2 times, most recently from 49d3ba4 to caa69c1 Compare February 3, 2019 18:44
@shaxbee
Copy link
Contributor Author

shaxbee commented Feb 3, 2019

This and #448 supersedes #400

@stanley-cheung
Copy link
Collaborator

Sorry for the late look at this. There had been some work to re-sync this repo with our internal codebase so it looks like there are some new conflicts.

Can you please resolve them and rebase to the latest master please? Thanks

@shaxbee
Copy link
Contributor Author

shaxbee commented Feb 22, 2019

@stanley-cheung Rebased :-)

Copy link
Collaborator

@stanley-cheung stanley-cheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants