Type alias DateUpdate<Schema>

DateUpdate<Schema>: {
    [K in keyof Schema as ContainsDate<Schema[K]> extends true
        ? K
        : never]?: Date | {
        $date: number;
    }
}

Weaker version of StrictDateUpdate which allows for more flexibility in typing date update operations.

Type Parameters

  • Schema