-
Notifications
You must be signed in to change notification settings - Fork 33
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
Wrong type picked on using WithContext #186
Comments
The error is misleading, because type matching is weird, but if you look at the editor you'll see a few errors at a few degrees of nesting:
Fixing that should fix this error! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I defined a wrapper class to store data, like
But when I assign a
Product
object, it recognizes asVehicle
and throw type error.Error:
Type '"Product"' is not assignable to type '"MotorizedBicycle"'.ts(2322)
Any help or guidance would be appreciated. Thanks
The text was updated successfully, but these errors were encountered: