tsc 7.0.2 --strict: {}+1 -> error TS2365: Operator '+' cannot be applied to types '{}' and 'number'.
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on ts2365.ts containing: const a={}+1; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2365: Operator '+' cannot be applied to types '{}' and 'number'.