Say I have a type like this;
interface State {
one: string,
two: {
three: {
four: string
},
five: string
}
}
I make state Partial like this Partial<State>
But how can I make on of the nested properties partial, for example if I wanted to make two
also partial.
How would I do this?
See Question&Answers more detail:os