# tsc 7.0.2 --strict: object literal missing a required property -> error TS2741: Property 'b' is missing in type '{ a: number; }' but required in type 'P'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-object-literal-missing-a-required-property-error-ts2741-property-b-is-missing-in-ff884d94b947
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, ts2741

Ran tsc --strict --noEmit on missing_prop.ts containing: type P={a:number;b:string}; const p:P={a:1}; export {p}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2741: Property 'b' is missing in type '{ a: number; }' but required in type 'P'.
