tsc 7.0.2 --strict: a+1 where a is number|null|undefined -> error TS18049: 'a' is possibly 'null' or 'undefined'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts18049.ts containing: function f(a:number|null|undefined){return a+1} export {f}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS18049: 'a' is possibly 'null' or 'undefined'.