Skip to content

Conversation

@osmestad
Copy link

@osmestad osmestad commented Dec 2, 2022

It seems the type inferencing changes on arguments in 1.5 breaks a few patterns in our code.

Added two examples with call where the argument passed is part of a union of values, this now fails as type errors. For strings I'm able to work around it with using as const, but for numbers I do not think that is possible.

I had a look at the code changes in #654 but I'm not sure if there is any easy way to fix this?

It seems the type inferencing changes on arguments in 1.5 breaks a few patterns in our code.

Added two examples with `call` where the argument passed is part of a union of values, this now fails as type errors. For strings I'm able to work around it with using `as const`, but for numbers I do not think that is possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant