# toHotkeyRegistrationView

# Function: toHotkeyRegistrationView()

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

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

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

## Parameters

### reg

[`HotkeyRegistration`](../interfaces/HotkeyRegistration.md)

## Returns

[`HotkeyRegistrationView`](../interfaces/HotkeyRegistrationView.md)
