class T::Props::Decorator
def smart_coerce(type, enum:)
def smart_coerce(type, enum:) wards compatibility for pre-T::Types style T::Utils.coerce(type) m.nil? il_type = T::Utils.unwrap_nilable(type) onnil_type nilable(T.all(nonnil_type, T.enum(enum))) all(type, T.enum(enum))