Type alias EnhanceWithTenantIdIfMissing<T>
EnhanceWithTenantIdIfMissing<T>: T extends { filter: { tenantId: string | undefined; }; } ? T : T extends { filter: infer F; } ? { filter: F & { tenantId: string | undefined; }; } & Omit<T, "filter"> : { filter: { tenantId: string | undefined; }; } & T