BUPKIS
    Preparing search index...

    Variable mapSizeAssertionConst

    mapSizeAssertion: AssertionFunctionSync<
        readonly [
            ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>,
            "to have size",
            ZodInt,
        ],
        (
            _subject: Map<unknown, unknown>,
            expectedSize: number,
        ) => ZodMap<ZodUnknown, ZodUnknown>,
        readonly [
            ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>,
            PhraseLiteralSlot<"to have size">,
            ZodInt,
        ],
    > = ...

    Asserts that a Map has a specific size.

    const map = new Map([
    ['a', 1],
    ['b', 2],
    ]);
    expect(map, 'to have size', 2); // passes
    expect(map, 'to have size', 3); // fails

    map-to-have-size-nonnegative-integer

    collections