tsc 7.0.2 --strict: generic argument violating its constraint -> error TS2344: Type 'number' does not satisfy the constraint 'string'.
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on ts2344.ts containing: type X<T extends string>=T; type Y=X<number>; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2344: Type 'number' does not satisfy the constraint 'string'.