I have the following object:
const myObject = {
one: {
fixed: {
a: 1
}
},
two: {
fixed: {
b: true
}
},
three: {
fixed: {
c: 'foo'
}
}
}
How can I use this object, to create a type equivalent to the following:
type MyUnionType = {
a: number
b: boolean
c: string
}
?