Creating an Object interface that accepts any property name.

If we want to a typescript definition for an Object that accepts any property value.  For example, the the $stateParams Object in AngularJS UI Router, we can work with the following declaration for the interface.


Interface for an Array of Objects

To create an Interface that is an array of object, we first create an interface of the Object and than extend it as an Array.


Ref :