Why can Typescript not figure out the type in my code?
Why the compiler can’t (or won’t) allow those property accesses Consider the following cases mentioned on this github thread linked in the comments by jcalz: interface Vec2 { x: number y: number } interface Vec3 { x: number y: number z: number } const m = { x: 0, y: 0, z: “hello world” }; … Read more