SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

descriptions,search: use `typed: strict` and `T::Enum`

## Summary

- Add `Descriptions::SearchField` enum with `Name`, `Description`, and
  `Either` values to replace symbol-based field parameter
- Upgrade `descriptions.rb` and `search.rb` to `typed: strict`
- Add Sorbet type signatures to all methods in both files
- Use exhaustive case matching with `T.absurd` for type safety
- Remove redundant `cache_store_hash` parameter by using `is_a?` check

Contributes to #17297.
D
Douglas Eichelberger committed
2a50a1e06fec5cbeb9775006b9eeeaf4a2c2fc50
Parent: 4bcf90a