DEV Community

Discussion on: Types vs. Interfaces in Typescript

Collapse
diasbruno profile image
Bruno Dias

With | you have a choice A | B (reads type A or B), and &, you can consider like a union of both types A and B.