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
xp
to enable you to extend their data model. Here's an example of a type wherexp
is object (I think sometimes it'sany
too).And the extension would be something like: