Check out the interface and type declarations provided below:
interface Foo {
bar: {
a: number
b: string
}
}
type Foo = {
bar: {
a: number
b: string
}
}
Is it possible to obtain the type definitions for "baz"? This will allow us to perform operations similar to the following:
const v: keyof Foo.bar = "a";