<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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>

