diff --git a/sig/react_on_rails/controller.rbs b/sig/react_on_rails/controller.rbs index a238284df6..39c8190f26 100644 --- a/sig/react_on_rails/controller.rbs +++ b/sig/react_on_rails/controller.rbs @@ -5,7 +5,7 @@ module ReactOnRails def redux_store: ( String store_name, - ?props: untyped, + ?props: Hash[Symbol, untyped] | String, ?immediate_hydration: bool ) -> void diff --git a/sig/react_on_rails/helper.rbs b/sig/react_on_rails/helper.rbs index dcc356b968..271666eb6a 100644 --- a/sig/react_on_rails/helper.rbs +++ b/sig/react_on_rails/helper.rbs @@ -21,7 +21,7 @@ module ReactOnRails # Returns html_safe string (ActiveSupport::SafeBuffer) def redux_store: ( String store_name, - ?Hash[Symbol, untyped] props + ?Hash[Symbol, untyped] | String props ) -> safe_buffer # Returns html_safe string (ActiveSupport::SafeBuffer) @@ -33,7 +33,7 @@ module ReactOnRails ?Hash[Symbol, untyped] options ) -> safe_buffer - def sanitized_props_string: (untyped props) -> String + def sanitized_props_string: (Hash[Symbol, untyped] | String props) -> String def rails_context: ( ?server_side: bool