#type-guard

[ follow ]
fromRubyflow
1 day ago
Ruby on Rails

Static typing in Ruby only works if type narrowing reflects how we actually write Rub

Type Guard in Steep enables real type narrowing for union types, framework predicates like present?, and user-defined methods, improving Rails type checking.
[ Load more ]