Say I have a type like this;
interface State { one: string, two: { three: { four: string }, five: string } }
I make
This is possible, you can create a 'deep' partial type as followed:
type DeepPartial = { [P in keyof T]?: DeepPartial; };
Which can be used as followed
const state: DeepPartial = { two: { three: { four: '4' } } }