<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXPriorityQueueNode](./x-components.basexpriorityqueuenode.md)

## BaseXPriorityQueueNode class

Default [XPriorityQueueNode](./x-components.xpriorityqueuenode.md) implementation.

**Signature:**

```typescript
export declare class BaseXPriorityQueueNode<SomeRecord extends Dictionary, SomeData extends Dictionary> implements XPriorityQueueNode<SomeRecord, SomeData> 
```
**Implements:** [XPriorityQueueNode](./x-components.xpriorityqueuenode.md)<!-- -->&lt;SomeRecord, SomeData&gt;

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(key, priority, data)](./x-components.basexpriorityqueuenode._constructor_.md) |  | Constructs a new instance of the <code>BaseXPriorityQueueNode</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [data](./x-components.basexpriorityqueuenode.data.md) | <code>readonly</code> | SomeData |  |
|  [key](./x-components.basexpriorityqueuenode.key.md) | <code>readonly</code> | keyof SomeRecord |  |
|  [priority](./x-components.basexpriorityqueuenode.priority.md) | <code>readonly</code> | number |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [toString()](./x-components.basexpriorityqueuenode.tostring.md) |  | Returns a string representation of this object. The string representation consists of: its priority, enclosed in square brackets (<code>[]</code>), followed by its key, an arrow <code>(-&gt;)</code> and the data converted to a string using JSON.stringify. |

