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
Error on line 6: This condition will always return 'false' since the types 'T[PropsThatExtend<T, number>]' and 'number' have no overlap.
π Expected behavior
Since all members in T[PropsThatExtend<T, number>] extend number the compiler should be able to recognize that the two types being compared overlap.
The text was updated successfully, but these errors were encountered:
Flonk
changed the title
TS not able to infer that T[keyof PropsThatExtend<T, M>] extends M
TS not able to infer that T[PropsThatExtend<T, M>] extends M
Feb 14, 2021
Bug Report
π Search Terms
π Version & Regression Information
All versions I tested.
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Error on line 6:
This condition will always return 'false' since the types 'T[PropsThatExtend<T, number>]' and 'number' have no overlap.
π Expected behavior
Since all members in
T[PropsThatExtend<T, number>]
extendnumber
the compiler should be able to recognize that the two types being compared overlap.The text was updated successfully, but these errors were encountered: