<!-- 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; [base](./case-definition-dsl.matchers.base.md) &gt; [AnyMatcher](./case-definition-dsl.matchers.base.anymatcher.md) &gt; [(constructor)](./case-definition-dsl.matchers.base.anymatcher._constructor_.md)

## matchers.base.AnyMatcher.(constructor)

The base class for all Test Equivalence Matchers. Extend this if you don't have an example in your Matcher. Otherwise, use Matcher strings beginning with `_case:` are reserved for the default ContractCase matchers.

Only use a types prefixed with `_case:` if you wish to create a special case for a matching behaviour that is already provided by a core ContractCase matcher.

**Signature:**

```typescript
constructor(matcherType: string);
```

## Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

matcherType

</td><td>

string

</td><td>

The type string for this matcher (see [Extending ContractCase](https://case.contract-testing.io/docs/reference/plugin-framework) for a description of these strings).

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