# tsc 7.0.2 --strict: an extra closing brace -> error TS1128: Declaration or statement expected.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-an-extra-closing-brace-error-ts1128-declaration-or-statement-expected-4ddddc352ebf
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: typescript, tsc, ts1128, syntax

Ran tsc --strict --noEmit on ts1128.ts containing: function f(){ } } export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS1128: Declaration or statement expected.
