2024-08-23 05:28:52 +01:00

26 lines
501 B
Ruby

# typed: strict
module SharedEnvExtension
requires_ancestor { Sorbet::Private::Static::ENVClass }
# Overload to allow `PATH` values.
sig {
type_parameters(:U).params(
key: String,
value: T.all(T.type_parameter(:U), T.nilable(T.any(String, PATH))),
).returns(T.type_parameter(:U))
}
def []=(key, value); end
end
# @!visibility private
class Sorbet
module Private
module Static
class ENVClass
include SharedEnvExtension
end
end
end
end