-
Notifications
You must be signed in to change notification settings - Fork 8
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
Generic type argument for QueryParamGroup #91
Comments
I've been playing around with this. It's… really tricky. Christ! So this version (as of commit c762650) compiles. But plenty of work left to be done here, and it gets ugly. :-/
|
I'd say this is OK if type inference would work out of the box, but it doesn't seem to. I think this may need to be on the backburner for a while longer, perhaps TypeScript will catch up (or someone tells me how to do it properly ;-) ) |
What's your idea?
It would be great if
QueryParamGroup
was generic (in terms of the names of the parameters) so thatvalue
,valueChanges
,setValue
andpatchValue
could be typed better.I've attempted this in the early days and recall that it wasn't quite that easy, but we should attempt this again.
The text was updated successfully, but these errors were encountered: