DEV Community

Discussion on: The Difference between TypeScript Interfaces and Types

Collapse
 
adonis profile image
Adis Durakovic

regarding unions. you can do the following

type foo = ifaceA | ifaceB

Collapse
 
smpnjn profile image
Johnny Simpson

yeah that is true to be fair