@empathyco/x-components
Version:
Empathy X Components
97 lines (43 loc) • 1.25 kB
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
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[data](./x-components.xpriorityqueuenode.data.md)
</td><td>
</td><td>
SomeData
</td><td>
The extra data to store in the queue associated with a key and priority pair.
</td></tr>
<tr><td>
[key](./x-components.xpriorityqueuenode.key.md)
</td><td>
</td><td>
keyof SomeRecord
</td><td>
The key to store the element in the queue.
</td></tr>
<tr><td>
[priority](./x-components.xpriorityqueuenode.priority.md)
</td><td>
</td><td>
number
</td><td>
The number used to sort the elements in the queue.
</td></tr>
</tbody></table>