// Sets all the properties of of a deeply nested object to optional. // Example: `DeepPartial` export type DeepPartial = { [P in keyof T]?: DeepPartial } export function isDefined(argument: T | undefined): argument is T { return argument !== undefined }