Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion core/string.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3580,4 +3580,15 @@ interface _ArefFromStringToString
end

%a{deprecated}
type String::encode_fallback = Hash[String, String] | Proc | Method | _ArefFromStringToString
type String::encode_fallback = Hash[String, String] | Proc | Method | String::_ArefFromStringToString

# Don't use this interface directly
#
# This is a copy of `::_ArefFromStringToString` but without deprecated attribute.
# This is a workaround to avoid deprecation warnings in `String::encode_fallback` type.
#
# This type will be deprecated soon once `::_ArefFromStringToString` and `String::encode_fallback` are removed.
#
interface String::_ArefFromStringToString
def []: (String) -> String
end
Loading