Skip to content
Advertisement

how do i add new property to existing interface and then export the new interface in Typescript?

How do I create and export a new interface – UIInterface: (would like to combine SummaryInterface with few other new properties)

Example:

JavaScript

My attempt

JavaScript

Advertisement

Answer

By extending the other interface like so:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement