-
Notifications
You must be signed in to change notification settings - Fork 107
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
noproxy: true type mismatch #413
Comments
Well, technically it is immutable, because changing it would almost certainly be a bug... |
And totally incompatible. So I'd like to have a solution better then explicit cast with |
@speigg as your team is the biggest user of the hookstate, could you please suggest what compromise we should have here? |
There is also this similar: #421 |
The only alternative is to go back and drop Immutable everywhere... not sure |
Right. So
|
When using .get with
{noproxy: true}
the return type stated asImmutable<S>
, however should be justS
.Due to the implementation details, it would be hard to write a conditional type here. Options are:
.getBare
or.getSource
method or something similar, which would have noproxy behavioroptions?
to positional args with conditional typesThe text was updated successfully, but these errors were encountered: