export type StandardCallback = (err?: ErrorInfo | null, result?: T) => void; export type ErrCallback = (err?: ErrorInfo | null) => void; export type PaginatedResultCallback = StandardCallback>; /** * Use this to override specific property typings on an existing object type */ export type Modify = Omit & R; /** * Collects all keys from every member of a union into a single partial object type. * Allows uniform access to any field across a discriminated union. */ export type FlattenUnion = { [K in T extends unknown ? keyof T : never]?: T extends unknown ? (K extends keyof T ? T[K] : never) : never; };