<!-- 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; [InStateWithVariables](./case-definition-dsl.states.instatewithvariables.md)

## states.InStateWithVariables class

A state descriptor for configuring an example that needs to run in a particular named state, and with variables provided by the framework.

**Signature:**

```typescript
export declare class InStateWithVariables extends AnyState
```

**Extends:** [AnyState](./case-definition-dsl.states.anystate.md)

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(stateName, variables)](./case-definition-dsl.states.instatewithvariables._constructor_.md)

</td><td>

</td><td>

A state descriptor for configuring an example that needs to run in a particular named state, and with variables provided by the framework.

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

## Properties

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

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

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

[variables](./case-definition-dsl.states.instatewithvariables.variables.md)

</td><td>

`readonly`

</td><td>

Record&lt;string, AnyMatcherOrData&gt;

</td><td>

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