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

---
```ts
$withDefaultKeyVisibility(
  context,
  entity,
  visibility): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](Interface.DecoratorContext.md) |
| `entity` | [`Model`](Interface.Model.md) |
| `visibility` | `string` |

## Returns

`void`
