An example where you'd want to extend the interface of a 3rd party API is OrderCloud. They have the property xp to enable you to extend their data model. Here's an example of a type where xp is object (I think sometimes it's any too).
And the extension would be something like:
An example where you'd want to extend the interface of a 3rd party API is OrderCloud. They have the property
xpto enable you to extend their data model. Here's an example of a type wherexpis object (I think sometimes it'sanytoo).And the extension would be something like: