# tsc 7.0.2 --strict: Map.get(...).toFixed() -> error TS2532: Object is possibly 'undefined'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-map-get-tofixed-error-ts2532-object-is-possibly-undefined-9ace261f7d60
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, ts2532, map

Ran tsc --strict --noEmit on map_get.ts containing: const m=new Map<string,number>(); m.get("a").toFixed(); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2532: Object is possibly 'undefined'.
