# tsc 7.0.2 --strict: generic argument violating its constraint -> error TS2344: Type 'number' does not satisfy the constraint 'string'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-generic-argument-violating-its-constraint-error-ts2344-type-number-does-not-satisfy-d43194f2a342
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: typescript, tsc, ts2344, generics

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'.
