Can we extract the type
type Values = [number, boolean, string]
from the given object?
const o = {
fst: 1,
snd: true,
trd: '',
}
I attempted this approach, but I am looking for types in an array format rather than a union type.
type O = typeof o
type Values = O[keyof O]
// Values = string | number | boolean