Convince me I am wrong: This should not be a type error, right? - I asserted it’s an object - I am using `?.` for property access www.typescriptlang.org/play/#code/G...
Post
It's because `object` doesn't have any properties. www.typescriptlang.org/play/#code/G...
Asserting something is an `object` does not mean it becomes a type which has any properties (ie. `any`)
0 reposts4 likes
No replies yet.