BUPKIS
    Preparing search index...

    Variable equalWithinAssertionConst

    equalWithinAssertion: AssertionFunctionSync<
        readonly [
            ZodUnion<
                readonly [
                    ZodDate,
                    ZodUnion<readonly [ZodISODateTime, ZodISODate]>,
                    ZodNumber,
                ],
            >,
            "to equal",
            ZodUnion<
                readonly [
                    ZodDate,
                    ZodUnion<readonly [ZodISODateTime, ZodISODate]>,
                    ZodNumber,
                ],
            >,
            "within",
            ZodCustomStringFormat<"duration">,
        ],
        (
            subject: string | number | Date,
            other: string | number | Date,
            toleranceStr: string,
        ) =>
            | { actual?: undefined; expected?: undefined; message: string }
            | {
                actual: { difference: number };
                expected: { maxDifference: number };
                message: string;
            }
            | undefined,
        readonly [
            ZodUnion<
                readonly [
                    ZodDate,
                    ZodUnion<readonly [ZodISODateTime, ZodISODate]>,
                    ZodNumber,
                ],
            >,
            PhraseLiteralSlot<"to equal">,
            ZodUnion<
                readonly [
                    ZodDate,
                    ZodUnion<readonly [ZodISODateTime, ZodISODate]>,
                    ZodNumber,
                ],
            >,
            PhraseLiteralSlot<"within">,
            ZodCustomStringFormat<"duration">,
        ],
    > = ...

    Asserts that the subject is equal to another date within a tolerance.

    const date1 = new Date('2023-01-01T10:00:00.000Z');
    const date2 = new Date('2023-01-01T10:00:00.500Z');
    expect(date1, 'to equal', date2, 'within', '1 second'); // passes
    expect(date1, 'to equal', date2, 'within', '100 milliseconds'); // fails

    date-like-to-equal-date-like-within-duration

    date