UNPKG

@contract-case/case-core

Version:

Core functionality for the ContractCase contract testing suite

17 lines 904 B
import { CoreObjectValuesMatch, CoreObjectKeysMatcher } from '@contract-case/case-entities-internal'; import { AnyCaseMatcherOrData } from '@contract-case/case-plugin-dsl-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: AnyCaseMatcherOrData, example?: Record<string, AnyCaseMatcherOrData>) => 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: AnyCaseMatcherOrData, exampleKey?: string) => CoreObjectKeysMatcher; //# sourceMappingURL=objects.d.ts.map