shawn swyx wang 3 Jun 19
Replying to @swyx
πŸ’πŸΌβ€β™‚οΈA union of object types *merge* their properties. This is why you need Discriminated Unions. πŸ’πŸΌβ€β™‚οΈI normally declare Function types via shorthand. I learned how to properly declare them as *callable objects* (!) & allow overloading! πŸ’πŸΌβ€β™‚οΈThe difference btwn {}, object and Object: