We have an interface defined this way:
interface IInitialInterface {
stack: string,
overflow: {
a: string,
b: string
}[],
}
How can I create a type with only the overflow property removing the array? If I do:
type TypeSearched = IInitialInterface['overflow']
Then I get:
type TypeSearched = {
a: string,
b: string
}[]
But I want to remove the array.
Thank you.