lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.9.3 vs lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.9.4
- old
+ new
@@ -58,9 +58,17 @@
#
# sig { params(value: Float).returns(Float) }
# def number_value=(value); end
# end
# ~~~
+ #
+ # Please note that you might have to ignore the originally generated Protobuf Ruby files
+ # to avoid _Redefining constant_ issues when doing type checking.
+ # Do this by extending your Sorbet config file:
+ #
+ # ~~~
+ # --ignore=/path/to/proto/cart_pb.rb
+ # ~~~
class Protobuf < Compiler
class Field < T::Struct
prop :name, String
prop :type, String
prop :init_type, String