Skip to content

Commit 8b24745

Browse files
committed
release: v1.54.1
1 parent cbda9c1 commit 8b24745

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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": "data-structure-typed",
3-
"version": "1.54.0",
3+
"version": "1.54.1",
44
"description": "Javascript Data Structure. Heap, Binary Tree, Red Black Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree(BST), AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack. Benchmark compared with C++ STL. API aligned with ES6 and Java.util. Usability is comparable to Python",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

src/data-structures/binary-tree/avl-tree-multi-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class AVLTreeMultiMapNode<K = any, V = any> extends AVLTreeNode<K, V[]> {
5757
*/
5858
export class AVLTreeMultiMap<K = any, V = any, R = object, MK = any, MV = any, MR = object>
5959
extends AVLTree<K, V[], R, MK, MV[], MR>
60-
implements IBinaryTree<K, V[], R, MK, MV[], MR>
60+
implements IBinaryTree<K, V[], R, MK, MV, MR>
6161
{
6262
/**
6363
* The constructor initializes an AVLTreeMultiMap with the provided keys, nodes, entries, or raw data

src/data-structures/binary-tree/tree-multi-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class TreeMultiMapNode<K = any, V = any> extends RedBlackTreeNode<K, V[]>
6363
*/
6464
export class TreeMultiMap<K = any, V = any, R = object, MK = any, MV = any, MR = object>
6565
extends RedBlackTree<K, V[], R, MK, MV[], MR>
66-
implements IBinaryTree<K, V[], R, MK, MV[], MR>
66+
implements IBinaryTree<K, V[], R, MK, MV, MR>
6767
{
6868
/**
6969
* The constructor initializes an TreeMultiMap with the provided keys, nodes, entries, or raw data

test/unit/data-structures/binary-tree/avl-tree-multi-map.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ describe('AVLTreeMultiMap', () => {
399399
});
400400

401401
describe('AVLTreeMultiMap iterative methods test', () => {
402-
let avlTmm: AVLTreeMultiMap<number, string>;
402+
let avlTmm: AVLTreeMultiMap<number, string, object, string, string, object>;
403403
beforeEach(() => {
404404
avlTmm = new AVLTreeMultiMap();
405405
avlTmm.add([1, ['a']]);
@@ -435,7 +435,7 @@ describe('AVLTreeMultiMap iterative methods test', () => {
435435
});
436436

437437
it('map should return a new avlTmm with modified elements', () => {
438-
const avlTmmMapped = avlTmm.map((key, value) => [(key * 2).toString(), value]);
438+
const avlTmmMapped = avlTmm.map((key, value) => [(key * 2).toString(), value ? value :[]]);
439439
expect(avlTmmMapped.size).toBe(3);
440440
expect([...avlTmmMapped]).toEqual([
441441
['2', ['a']],

test/unit/data-structures/binary-tree/tree-multi-map.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ describe('TreeMultiMap 2', () => {
627627
});
628628

629629
describe('TreeMultiMap iterative methods test', () => {
630-
let tmm: TreeMultiMap<number, string>;
630+
let tmm: TreeMultiMap<number, string, object, string, string, object>;
631631
beforeEach(() => {
632632
tmm = new TreeMultiMap();
633633
tmm.add([1, ['a']]);
@@ -664,7 +664,7 @@ describe('TreeMultiMap 2', () => {
664664
});
665665

666666
it('map should return a new tmm with modified elements', () => {
667-
const tmmMapped = tmm.map((key, value) => [(key * 2).toString(), value]);
667+
const tmmMapped = tmm.map((key, value) => [(key * 2).toString(), value ? value :[]]);
668668
expect(tmmMapped.size).toBe(3);
669669
expect([...tmmMapped]).toEqual([
670670
['2', ['a']],

0 commit comments

Comments
 (0)