<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [convenience](./case-definition-dsl.matchers.convenience.md) &gt; [And](./case-definition-dsl.matchers.convenience.and.md)

## matchers.convenience.And class

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.

**Signature:**

```typescript
export declare class And extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)(matchers)](./case-definition-dsl.matchers.convenience.and._constructor_.md)

</td><td>

</td><td>

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.

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.convenience.and.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
