# toHotkeyRegistrationView

```ts
function toHotkeyRegistrationView(reg): HotkeyRegistrationView;
```

Defined in: [hotkey-manager.ts:170](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L170)

Creates a public view from an internal registration, stripping the callback.

## Parameters

### reg

[`HotkeyRegistration`](../type-aliases/HotkeyRegistration.md)

## Returns

[`HotkeyRegistrationView`](../type-aliases/HotkeyRegistrationView.md)
