Skip to main content

And

Matches all of the provided matchers. Useful for combining restrictions provided by different matchers, or creating new matchers without needing plugins.

For best results, wrap the And matcher in a WithExample matcher.

import { matchers } from '@contract-case/case-definition-dsl'

new matchers.convenience.And(matchers: any[])

Parameters

NameTypeDescription
matchersany[]An array of the matchers to run against this particular spot in the tree.