You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
Couldn't find a duplicate, searching for "Params" or "unapply", so raising an issue.
The documentation of unfiltered.request.Params.unapply indicates that it destructures to (Map[...], HttpRequest). This would allow the pattern to be composed with other patterns, since they can be nested into the HttpRequest.
However, contrary to the usual recommended style for public methods, there is no explicit type given. The inferred type actually destructures to only a Map[...], preventing the pattern from being composed, and rather embarrassing the documentation. The behaviour appears to be in all the versions I looked at on Github.
Cheers,
Ken
The text was updated successfully, but these errors were encountered:
Hi there,
Couldn't find a duplicate, searching for "Params" or "unapply", so raising an issue.
The documentation of unfiltered.request.Params.unapply indicates that it destructures to (Map[...], HttpRequest). This would allow the pattern to be composed with other patterns, since they can be nested into the HttpRequest.
However, contrary to the usual recommended style for public methods, there is no explicit type given. The inferred type actually destructures to only a Map[...], preventing the pattern from being composed, and rather embarrassing the documentation. The behaviour appears to be in all the versions I looked at on Github.
Cheers,
Ken
The text was updated successfully, but these errors were encountered: