<!-- 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; [states](./case-definition-dsl.states.md) &gt; [AnyState](./case-definition-dsl.states.anystate.md) &gt; [(constructor)](./case-definition-dsl.states.anystate._constructor_.md)

## states.AnyState.(constructor)

The base class for all ContractCase State Descriptors. You shouldn't need to extend this.

You don't need to read the documentation for this class unless you are working on a wrapper for ContractCase.

**Signature:**

```typescript
constructor(stateType: string, stateName: string);
```

## Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

stateType

</td><td>

string

</td><td>

</td></tr>
<tr><td>

stateName

</td><td>

string

</td><td>

The name of the state used by this example. This must match one of the state handlers provided in the configuration during the example run.

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