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.


Leave a Reply

Your email address will not be published. Required fields are marked *