@cfxlabsinc/b2b-services
    Preparing search index...
    WithSerializedDates: T extends unknown
        ? Omit<T, "createdAt" | "updatedAt" | "deletedAt"> & {
            createdAt: string;
            deletedAt: string | null;
            updatedAt: string;
        }
        : never

    Rewrites the three Date fields to their JSON (string) form.

    The conditional is distributive (naked T), so the ten-member discriminated union survives — a plain Omit over the union would collapse it into a single object type and lose the type discriminant.

    Type Parameters

    • T