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

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

Mark a string as a secret value that should be treated carefully to avoid exposure

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `context` | [`DecoratorContext`](../interfaces/DecoratorContext.md) | Decorator context |
| `target` | [`Scalar`](../interfaces/Scalar.md) \| [`ModelProperty`](../interfaces/ModelProperty.md) | Decorator target, either a string model or a property with type string. |

## Returns

`void`
