bupkis
    Preparing search index...

    Variable PropertyKeySchemaConst

    PropertyKeySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]> = ...

    A Zod schema that validates JavaScript property keys.

    This schema validates values that can be used as object property keys in JavaScript, which includes strings, numbers, and symbols. These are the three types that JavaScript automatically converts to property keys when used in object access or assignment operations.

    PropertyKeySchema.parse('stringKey'); // ✓ Valid
    PropertyKeySchema.parse(42); // ✓ Valid
    PropertyKeySchema.parse(Symbol('symbolKey')); // ✓ Valid
    PropertyKeySchema.parse({}); // ✗ Throws validation error
    PropertyKeySchema.parse(null); // ✗ Throws validation error