---
jsApi: true
title: "[F] $pattern"

---
```ts
$pattern(
   context, 
   target, 
   pattern): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](../interfaces/DecoratorContext.md) |
| `target` | [`ModelProperty`](../interfaces/ModelProperty.md) \| [`Scalar`](../interfaces/Scalar.md) |
| `pattern` | `string` |

## Returns

`void`
