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

## matchers.strings.StringSuffix.(constructor)

Constructs a new instance of the `StringSuffix` class

**Signature:**

```typescript
constructor(prefix: AnyStringMatcher, suffix: string);
```

## Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

prefix

</td><td>

AnyStringMatcher

</td><td>

A string or matcher to match against the prefix. If you don't mind what the prefix is, pass null / undefined

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

suffix

</td><td>

string

</td><td>

The suffix for the matched string. Must be a string and not a matcher

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