tsc 7.0.2 --strict: property access on unknown -> error TS18046: 'x' is of type 'unknown'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on unknown.ts containing: function f(x:unknown){return x.foo} export {f}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS18046: 'x' is of type 'unknown'.