UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

16 lines (15 loc) 801 B
import { type AnyCaseNodeOrData, type CoreObjectValuesMatch, type CoreObjectKeysMatcher } from '../../../entities/types'; /** * Matches an object where each value matches the provided matcher. * * @param matcher - The object, array, primitive or matcher to match against * @param example - An example object that passes this matcher */ export declare const objectEachValueMatches: (matcher: AnyCaseNodeOrData, example?: Record<string, AnyCaseNodeOrData>) => CoreObjectValuesMatch; /** * Matches an object where each key matches the provided matcher. * * @param matcher - The matcher that all keys must pass * @param exampleKey - An example key that passes this matcher */ export declare const objectEachKeyMatches: (matcher: AnyCaseNodeOrData, exampleKey?: string) => CoreObjectKeysMatcher;