@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 635 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [DeviceMutations](./x-components.devicemutations.md) > [setName](./x-components.devicemutations.setname.md)
Sets the [DeviceState.name](./x-components.devicestate.name.md) of the module.
**Signature:**
```typescript
setName(device: string | null): void;
```
| Parameter | Type | Description |
| --- | --- | --- |
| device | string \| null | The new device state to set. |
**Returns:**
void