export type Simplify = { [KeyType in keyof T]: T[KeyType]; } & {}; export type WithRequired = T & { [P in K]-?: T[P]; }; export type OmitIndexSignature = { [KeyType in keyof ObjectType as object extends Record ? never : KeyType]: ObjectType[KeyType]; }; export type OmitPreservingIndexSignature = { [P in keyof T as Exclude]: T[P]; }; export type ValueOf = T[keyof T]; export type MapValue = T extends Map ? V : never; export type DeepPartial = { [P in keyof T]?: T[P] extends (infer U)[] ? DeepPartial[] : T[P] extends object | undefined ? DeepPartial : T[P]; };