Check out example codes for "typescript recursive partial". It will help you in understanding the concepts better.

Code Example 1

type RecursivePartial<T> = {
  [P in keyof T]?:
    T[P] extends (infer U)[] ? RecursivePartial<U>[] :
    T[P] extends object ? RecursivePartial<T[P]> :
    T[P];
};

Learn ReactJs, React Native from akashmittal.com