I recently came across an object that looks like this:
const myObject = {
0: 'FIRST',
10: 'SECOND',
20: 'THIRD',
}
My goal is to define a type using the values from this object, similar to this:
type AwesomeType = 'FIRST' | 'SECOND' | 'THIRD';
Any suggestions on how I can accomplish this?