Here is the structure I am working with:
type MyType = {
a?: {
b: number;
}
}
I am trying to access the type of b
.
After that, my goal is to create a new type based on this:
type AnotherType = {
mytype: MyType['a']['b']
}
However, I am facing issues with this approach.