min-heap-typed 1.39.1 → 1.39.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/data-structures/binary-tree/binary-tree.d.ts +11 -1
  2. package/dist/data-structures/binary-tree/binary-tree.js +38 -0
  3. package/dist/data-structures/linked-list/doubly-linked-list.d.ts +46 -28
  4. package/dist/data-structures/linked-list/doubly-linked-list.js +59 -49
  5. package/dist/data-structures/linked-list/singly-linked-list.d.ts +75 -7
  6. package/dist/data-structures/linked-list/singly-linked-list.js +110 -9
  7. package/dist/data-structures/queue/deque.d.ts +20 -20
  8. package/dist/data-structures/queue/deque.js +22 -22
  9. package/dist/data-structures/queue/queue.d.ts +3 -3
  10. package/dist/data-structures/queue/queue.js +3 -3
  11. package/package.json +2 -2
  12. package/src/data-structures/binary-tree/avl-tree.ts +2 -3
  13. package/src/data-structures/binary-tree/binary-indexed-tree.ts +1 -1
  14. package/src/data-structures/binary-tree/binary-tree.ts +47 -5
  15. package/src/data-structures/binary-tree/bst.ts +1 -2
  16. package/src/data-structures/binary-tree/rb-tree.ts +1 -2
  17. package/src/data-structures/binary-tree/tree-multiset.ts +1 -2
  18. package/src/data-structures/graph/abstract-graph.ts +10 -11
  19. package/src/data-structures/graph/directed-graph.ts +1 -2
  20. package/src/data-structures/graph/undirected-graph.ts +4 -5
  21. package/src/data-structures/hash/hash-map.ts +1 -1
  22. package/src/data-structures/hash/tree-map.ts +2 -1
  23. package/src/data-structures/hash/tree-set.ts +2 -1
  24. package/src/data-structures/heap/heap.ts +2 -2
  25. package/src/data-structures/heap/max-heap.ts +1 -1
  26. package/src/data-structures/heap/min-heap.ts +1 -1
  27. package/src/data-structures/linked-list/doubly-linked-list.ts +62 -56
  28. package/src/data-structures/linked-list/singly-linked-list.ts +119 -14
  29. package/src/data-structures/matrix/matrix.ts +1 -1
  30. package/src/data-structures/matrix/vector2d.ts +2 -1
  31. package/src/data-structures/priority-queue/max-priority-queue.ts +1 -1
  32. package/src/data-structures/priority-queue/min-priority-queue.ts +1 -1
  33. package/src/data-structures/priority-queue/priority-queue.ts +1 -1
  34. package/src/data-structures/queue/deque.ts +27 -26
  35. package/src/data-structures/queue/queue.ts +4 -4
  36. package/src/types/data-structures/matrix/navigator.ts +1 -1
  37. package/src/types/utils/utils.ts +1 -1
  38. package/src/types/utils/validate-type.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  export type Direction = 'up' | 'right' | 'down' | 'left';
2
2
 
3
- export type Turning = {[key in Direction]: Direction};
3
+ export type Turning = { [key in Direction]: Direction };
4
4
 
5
5
  export type NavigatorParams<T = any> = {
6
6
  matrix: T[][];
@@ -1,5 +1,5 @@
1
1
  export type ToThunkFn = () => ReturnType<TrlFn>;
2
- export type Thunk = () => ReturnType<ToThunkFn> & {__THUNK__: symbol};
2
+ export type Thunk = () => ReturnType<ToThunkFn> & { __THUNK__: symbol };
3
3
  export type TrlFn = (...args: any[]) => any;
4
4
  export type TrlAsyncFn = (...args: any[]) => any;
5
5
 
@@ -1,6 +1,6 @@
1
- export type KeyValueObject = {[key: string]: any};
1
+ export type KeyValueObject = { [key: string]: any };
2
2
 
3
- export type KeyValueObjectWithKey = {[key: string]: any; key: string | number | symbol};
3
+ export type KeyValueObjectWithKey = { [key: string]: any; key: string | number | symbol };
4
4
 
5
5
  export type NonNumberNonObjectButDefined = string | boolean | symbol | null;
6
6