File tree Expand file tree Collapse file tree
smithy-client/sig/smithy-client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ module Smithy
22 module Client
33 # RBS does not support Delegator.
44 # the behavior mimics `Smithy::Client::Output` as much as possible.
5- interface _Output [DATA, StandardError ]
5+ interface _Output [DATA_OR_ERROR ]
66 def context : () -> HandlerContext?
7- def data : () -> DATA ?
8- def error : () -> StandardError ?
7+ def data : () -> DATA_OR_ERROR ?
8+ def error : () -> DATA_OR_ERROR ?
99 end
1010 end
1111end
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ def initialize(options = {})
1818 # @return [Hash<String, Object>]
1919 attr_accessor :traits
2020
21- # @return [Hash< Object, Object> ]
21+ # @return [Object]
2222 def []( key )
2323 @metadata [ key ]
2424 end
2525
26- # @param [Object ] key
26+ # @param [Symbol ] key
2727 # @param [Object] value
2828 def []=( key , value )
2929 @metadata [ key ] = value
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ module Smithy
66
77 attr_accessor id: String?
88 attr_accessor traits: Hash[String, untyped ]
9- def [] : (untyped ) -> untyped
10- def []= : (untyped , untyped ) -> void
9+ def [] : (Symbol ) -> Object
10+ def []= : (Symbol, Object ) -> void
1111 end
1212
1313 class Structure < Shape
You can’t perform that action at this time.
0 commit comments