@empathyco/x-components
Version:
Empathy X Components
23 lines (14 loc) • 962 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XPriorityQueueNode](./x-components.xpriorityqueuenode.md)
## XPriorityQueueNode interface
An object containing a key, a priority number and a data.
**Signature:**
```typescript
export interface XPriorityQueueNode<SomeRecord extends Dictionary, SomeData extends Dictionary = Dictionary>
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [data](./x-components.xpriorityqueuenode.data.md) | | SomeData | The extra data to store in the queue associated with a key and priority pair. |
| [key](./x-components.xpriorityqueuenode.key.md) | | keyof SomeRecord | The key to store the element in the queue. |
| [priority](./x-components.xpriorityqueuenode.priority.md) | | number | The number used to sort the elements in the queue. |