tsc 7.0.2 --strict: reading .x on an un-awaited Promise -> error TS2339: Property 'x' does not exist on type 'Promise<{ x: number; }>'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2339_promise.ts containing: async function a(){return {x:1}} const r=a(); r.x; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2339: Property 'x' does not exist on type 'Promise<{ x: number; }>'.