CONTACT US

    Interface vs Type alias in TypeScript 2.7

    • You cannot use implements on a class with type alias if you use union operator within your type definition.
    • You cannot use extends on an interface with type alias if you use union operator within your type definition.
    • Declaration merging doesn’t work with type alias.

    Article link copied

    Close button