Q: adding inspect() method, changing return type of getSettled

As per documentation:
https://github.com/kriskowal/q/wiki/API-Reference#promiseallsettled
https://github.com/kriskowal/q/wiki/API-Reference#promiseinspect

Is there a decent way to do string enums in a .d.ts file, so as to restrict the range of acceptable values for the state field?

-a