Union type of an object literal type and empty object (using `never` as its field) not reporting type errors in some cases · Issue #51211 · microsoft/ TypeScript · GitHub
Empty object or type (`{} | Type`) doesn't work as expected · Issue #8032 · microsoft/TypeScript · GitHub
![Matt Pocock on X: "The '{}' type is a bit magic in TypeScript. Instead of representing "any object", it actually represents "anything that isn't null or undefined". This is probably the biggest Matt Pocock on X: "The '{}' type is a bit magic in TypeScript. Instead of representing "any object", it actually represents "anything that isn't null or undefined". This is probably the biggest](https://pbs.twimg.com/media/FzDJkKaX0AE1Isl.jpg)