BUPKIS
    Preparing search index...

    Variable objectHasKeyMatchingAssertionConst Function

    objectHasKeyMatchingAssertion: AssertionFunctionSync<
        readonly [
            ZodCustom<
                Record<PropertyKey, unknown>
                | ((...args: any[]) => any),
                Record<PropertyKey, unknown> | ((...args: any[]) => any),
            >,
            readonly [
                "to have a key matching",
                "to have key matching",
                "to have a prop matching",
                "to have prop matching",
                "to have a property matching",
                "to have property matching",
                "to have a field matching",
                "to have field matching",
            ],
            ZodCustom<RegExp, RegExp>,
        ],
        (
            subject: Record<PropertyKey, unknown> | ((...args: any[]) => any),
            pattern: RegExp,
        ) => { message: string } | undefined,
        readonly [
            ZodCustom<
                Record<PropertyKey, unknown>
                | ((...args: any[]) => any),
                Record<PropertyKey, unknown> | ((...args: any[]) => any),
            >,
            PhraseLiteralChoiceSlot<
                readonly [
                    "to have a key matching",
                    "to have key matching",
                    "to have a prop matching",
                    "to have prop matching",
                    "to have a property matching",
                    "to have property matching",
                    "to have a field matching",
                    "to have field matching",
                ],
            >,
            ZodCustom<RegExp, RegExp>,
        ],
    > = ...

    Asserts that at least one own enumerable string key of a non-collection object matches a regular expression.

    Fails on objects with no own enumerable string keys.

    Only considers own enumerable string keys (equivalent to Object.keys()). Symbol keys and non-enumerable keys are not checked.

    expect({ foo: 1, BAR: 2 }, 'to have a key matching', /^[a-z]+$/); // passes
    expect({ foo: 1, BAR: 2 }, 'to have a prop matching', /^[a-z]+$/); // alias
    expect({ foo: 1, BAR: 2 }, 'to have a field matching', /^[a-z]+$/); // alias
    expect({ FOO: 1, BAR: 2 }, 'to have a key matching', /^[a-z]+$/); // fails
    expect({ foo: 1 }, 'to have key matching', /foo/); // passes

    object-to-have-a-key-matching-regexp

    object