<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPriorityQueue](./x-components.xpriorityqueue.md) &gt; [push](./x-components.xpriorityqueue.push.md)

## XPriorityQueue.push property

Inserts an element into the queue in the correct position based on its priority.

**Signature:**

```typescript
push: (key: keyof SomeRecord, priority: number, data?: SomeData) => void;
```
