Skip to content

fix: export PriorityQueue to fix declaration emit for consumers#242

Merged
sindresorhus merged 1 commit into
sindresorhus:mainfrom
JammingBen:fix/export-priority-queue
Apr 7, 2026
Merged

fix: export PriorityQueue to fix declaration emit for consumers#242
sindresorhus merged 1 commit into
sindresorhus:mainfrom
JammingBen:fix/export-priority-queue

Conversation

@JammingBen
Copy link
Copy Markdown
Contributor

PriorityQueue is used as the default generic type parameter of PQueue, but is not re-exported from the package. This causes TypeScript's declaration emit (--declaration) to fail for any consumer that exposes a PQueue instance in their public API, because TypeScript cannot reference PriorityQueue through a portable import path.

PriorityQueue is used as the default generic type parameter of PQueue,
but is not re-exported from the package. This causes TypeScript's
declaration emit (--declaration) to fail for any consumer that exposes
a PQueue instance in their public API, because TypeScript cannot
reference PriorityQueue through a portable import path.
@sindresorhus sindresorhus merged commit a20e1f3 into sindresorhus:main Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants