Co-authored-by: Patrick Linnane <patrick@linnane.io> Co-authored-by: Carlo Cabrera <github@carlo.cab> Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com> Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
31 lines
748 B
Ruby
31 lines
748 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
class Hash
|
|
sig {
|
|
type_parameters(:Out).params(
|
|
block: T.proc.params(o: K).returns(T.type_parameter(:Out)),
|
|
).returns(T::Hash[T.type_parameter(:Out), V])
|
|
}
|
|
def deep_transform_keys(&block); end
|
|
|
|
sig {
|
|
type_parameters(:Out).params(
|
|
block: T.proc.params(o: K).returns(T.type_parameter(:Out)),
|
|
).returns(T::Hash[T.type_parameter(:Out), V])
|
|
}
|
|
def deep_transform_keys!(&block); end
|
|
|
|
sig { returns(T::Hash[String, V]) }
|
|
def deep_stringify_keys; end
|
|
|
|
sig { returns(T::Hash[String, V]) }
|
|
def deep_stringify_keys!; end
|
|
|
|
sig { returns(T::Hash[Symbol, V]) }
|
|
def deep_symbolize_keys; end
|
|
|
|
sig { returns(T::Hash[Symbol, V]) }
|
|
def deep_symbolize_keys!; end
|
|
end
|