I am trying to access the nested type b given the following type definition and that a is not null:
type Abc = {
a: {
b: number
} | null
}
However, the following code causes an error: Property 'b' does not exist on type '{ b: number; } | null'.ts(2339)
const test: Abc["a"]["b"] = 3;