Represents a recursive partial type where all nested properties are optional.
The type to transform.
0.14.0
interface User { name: string; address: { street: string; city: string; };}// All nested properties become optionalfunction updateUser(id: number, patch: DeepPartial<User>) { }updateUser(1, { address: { city: "Seattle" } }); // OK — street is not required Copy
interface User { name: string; address: { street: string; city: string; };}// All nested properties become optionalfunction updateUser(id: number, patch: DeepPartial<User>) { }updateUser(1, { address: { city: "Seattle" } }); // OK — street is not required
Represents a recursive partial type where all nested properties are optional.