@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 694 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [TaggingMutations](./x-components.taggingmutations.md) > [setConsent](./x-components.taggingmutations.setconsent.md)
## TaggingMutations.setConsent() method
Sets the [TaggingState.consent](./x-components.taggingstate.consent.md) property.
**Signature:**
```typescript
setConsent(consent: boolean): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| consent | boolean | The new [TaggingState.consent](./x-components.taggingstate.consent.md)<!-- -->. |
**Returns:**
void