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

V2: Add method field to DescMethod; Improve generated service types #874

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

srikrsna-buf
Copy link
Member

@srikrsna-buf srikrsna-buf commented Jun 3, 2024

Add method to DescMethod similar to field in DescMessage. This gives users easy access to method descriptors using their localName.

This also aligns the generated types to match the value of this new field, the resulting type a is a strongly typed method descriptor.

Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

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

This seems to work out well!

packages/protobuf/src/codegenv1/types.ts Outdated Show resolved Hide resolved
Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

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

LGTM!

@srikrsna-buf srikrsna-buf merged commit fda87cf into v2 Jun 3, 2024
6 checks passed
@srikrsna-buf srikrsna-buf deleted the sk/services branch June 3, 2024 15:40
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