RecursivePartial
internal type
type RecursivePartial<T> = { [P in keyof T]: T[P] extends infer U[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P] }Recursive Partial taken from here: https://stackoverflow.com/a/51365037