-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionController::Parameters#require
signature needs adjustment
#231
Comments
ActionController::Parameters#require
signature needs adjustedActionController::Parameters#require
signature needs adjustment
Just ran into this same issue, where I can |
cc @amomchilov |
@aprescott Do you know what the full possible set of returnable types is? It should be Whatever that type is, that's what should be used as the return value of not just
That's a performance concession, Sorbet's runtime type-checking doesn't do deep recursive type-checks on Enumerables. The runtime type-checking calls |
I'm not sure! It would be good to match whatever
Found the docs explaining this right after my comment, realized my confusion! |
Agreed, let's start there, and adjust it if people find that other values were possible. @aprescott Would you be interested in opening your first RBI Central PR to contribute this Sig? :)
I like using
|
See #224 (review)
The text was updated successfully, but these errors were encountered: