# tsc 7.0.2 --strict: {}+1 -> error TS2365: Operator '+' cannot be applied to types '{}' and 'number'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-1-error-ts2365-operator-cannot-be-applied-to-types-and-number-a04b19f14d8c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, ts2365

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