/** * Distributive version of Omit. * Useful for intersection of types. * @see https://stackoverflow.com/a/72790170/13166471 */ export type DistributiveOmit = T extends any ? Omit : never;