Skip to content

Commit 3e46e03

Browse files
committed
bumped version
1 parent 1860af2 commit 3e46e03

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oresoftware/linked-queue",
3-
"version": "2.1.109",
3+
"version": "2.1.126",
44
"description": "Synchronous queue implementation with constant/linear time operations.",
55
"main": "dist/linked-queue.js",
66
"types": "dist/linked-queue.d.ts",

src/linked-queue.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface LinkedQueueValue<V, K> {
1111
after?: LinkedQueueValue<V, K>,
1212
before?: LinkedQueueValue<V, K>,
1313
value: V,
14-
key: K,
14+
key: any,
1515
}
1616

1717
export type IteratorFunction<T, V> = (val: [T, V], index: number) => V;
@@ -27,16 +27,16 @@ export const IsVoid = {
2727
}
2828

2929

30-
export class LinkedQueue<V, K> {
30+
export class LinkedQueue<V, K = any> {
3131

3232
private lookup = new Map<K, LinkedQueueValue<V, K>>();
3333
private head: LinkedQueueValue<V, K> | null = null;
3434
private tail: LinkedQueueValue<V, K> = null;
3535

3636
getComputedProperties() {
37-
return Object.assign({}, this, {
38-
lookup: {size: this.lookup.size}
39-
});
37+
return {
38+
size: this.lookup.size
39+
};
4040
}
4141

4242
get size() {

0 commit comments

Comments
 (0)