/** * Make all properties and nested properties in T required * * Typescript's Partial helper only goes one level deep * however partial for OrderCloud requests means Partial for any nested sub-model as well * * @typeParam T represents the type whos fields and nested fields will be optional */ export type PartialDeep = T extends object ? PartialObjectDeep : T; type PartialObjectDeep = { [P in keyof T]?: PartialDeep; }; export {};