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?
question from:https://stackoverflow.com/questions/47914536/use-partial-in-nested-property-with-typescript