tsc 7.0.2 --strict: assigning null to string|undefined -> error TS2322: Type 'null' is not assignable to type 'string | undefined'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on null_undef.ts containing: let a: string|undefined = null; export {a}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2322: Type 'null' is not assignable to type 'string | undefined'.