You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the generated types for enums it's tricky to figure out what the possible variants are without spelunking through .proto files or other usages in the codebase.
Problem
With the generated types for enums it's tricky to figure out what the possible variants are without spelunking through .proto files or other usages in the codebase.
For example, with the following enum:
the generated .rbi doesn't help when figuring out the possible variants:
relevant generator code:
protoc-gen-rbi/ruby_types/ruby_types.go
Lines 141 to 146 in f96debe
Ideas
Add a comment with the Symbol variants:
somehow express the union in the type itself
but also keep the more general
Symbol
type since other variants could be passed innot sure about this one
The text was updated successfully, but these errors were encountered: