Typescript Async Function Signature Typescript Enum Get Key