Type alias StrictDateUpdate<Schema, InNotation>

StrictDateUpdate<Schema, InNotation>: ContainsDate<InNotation> extends true
    ? {
        [K in keyof InNotation as ContainsDate<InNotation[K]> extends true
            ? K
            : never]?: Date | {
            $date: number;
        }
    }
    : TypeErr<"Can not perform a date operation on a schema with no dates">

Strongly types date update operations (inc. dot notation schema).

Type Parameters