@empathyco/x-components
Version:
Empathy X Components
20 lines (13 loc) • 642 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [UseDeviceReturn](./x-components.usedevicereturn.md)
## UseDeviceReturn type
The Return type of the composable returned by `createUseDevice`<!-- -->.
**Signature:**
```typescript
export type UseDeviceReturn<Device extends string = string> = {
orientation: Ref<'landscape' | 'portrait' | undefined>;
isTouchable: Ref<boolean>;
deviceName: Ref<string>;
} & UseDeviceFlags<Device>;
```
**References:** [UseDeviceFlags](./x-components.usedeviceflags.md)