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
This is just not something that TS supports. Inference targets have to appear in parameter lists - the "sources" in constraints of other type parameters are ignored. An even simpler repro:
Acknowledgement
Comment
I'm not sure if the following is a bug or if it's working as intended.
Here,
a
is inferred to be of typeX<unknown, unknown, { point: number; datum: string; }>
(whilea.p
anda.d
have the correct types).I expected it to be of type
X<number, string, { point: number; datum: string; }>
.Can anybody explain what's going on here? I'm using Typescript 5.4.3.
The text was updated successfully, but these errors were encountered: