bupkis
    Preparing search index...

    Variable StrongMapSchemaConst

    StrongMapSchema: z.ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>> = ...

    A Zod schema that validates Map instances excluding WeakMap instances.

    This schema ensures that the validated value is a Map and specifically excludes WeakMap instances through refinement validation. This is useful when you need to ensure you're working with a regular Map that allows iteration and enumeration of keys, unlike WeakMaps which are not enumerable.

    The schema is registered in the BupkisRegistry with the name StrongMapSchema for later reference and type checking purposes.

    const validMap = new Map([
    ['key1', 'value1'],
    ['key2', 'value2'],
    ]);
    StrongMapSchema.parse(validMap); // ✓ Valid

    const weakMap = new WeakMap();
    StrongMapSchema.parse(weakMap); // ✗ Throws validation error