<!-- 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) &gt; [(constructor)](./x-components.basexpriorityqueuenode._constructor_.md)

## BaseXPriorityQueueNode.(constructor)

Constructs a new instance of the `BaseXPriorityQueueNode` class

**Signature:**

```typescript
constructor(key: keyof SomeRecord, priority: number, data?: SomeData);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

key


</td><td>

keyof SomeRecord


</td><td>


</td></tr>
<tr><td>

priority


</td><td>

number


</td><td>


</td></tr>
<tr><td>

data


</td><td>

SomeData


</td><td>

_(Optional)_


</td></tr>
</tbody></table>

