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

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

## Parameters

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

## Returns

`void`
