-
Notifications
You must be signed in to change notification settings - Fork 53
Description
I tried both v5 and latest v6 with typescript but got compiling errors.
Here is my npm list for v5. v6 is similar.
├── @datastructures-js/priority-queue@5.4.0
├── @types/node@22.10.3
└── typescript@5.7.2
When I compiled priority queue with import I got error messages.
node_modules/@datastructures-js/priority-queue/src/maxPriorityQueue.d.ts:5:14 - error TS1354: 'readonly' type modifier is only permitted on array and tuple literal types.
5 entries: readonly Iterable<readonly [element: T, priority: number]>
~~~~~~~~
node_modules/@datastructures-js/priority-queue/src/maxPriorityQueue.d.ts:5:51 - error TS2302: Static members cannot reference class type parameters.
5 entries: readonly Iterable<readonly [element: T, priority: number]>
Is this lib broken for typescript?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status