File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# @algo-js/priority-queue
2
2
3
- Fast heap-based priority queue for production
3
+ Fastest heap-based production-ready priority queue fully written on TypeScript
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @algo-js/priority-queue" ,
3
3
"version" : " 1.0.2" ,
4
- "description" : " Fast heap-based priority queue for production " ,
4
+ "description" : " Fastest heap-based production-ready priority queue fully written on TypeScript " ,
5
5
"main" : " build/main/index.js" ,
6
6
"typings" : " build/main/index.d.ts" ,
7
7
"module" : " build/module/index.js" ,
8
- "repository" : " https://github.com/IPRIT/ algo-js/priority-queue" ,
8
+ "repository" : " https://github.com/algo-js/priority-queue" ,
9
9
"license" : " MIT" ,
10
10
"keywords" : [],
11
11
"scripts" : {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class PriorityQueue<T> extends MaxHeapTree<T> implements Queue<T> {
65
65
/**
66
66
* @returns {* }
67
67
*/
68
- public dequeue ( ) : T {
68
+ public dequeue ( ) : T | undefined {
69
69
const element = super . poll ( ) ;
70
70
71
71
if ( element ) {
@@ -77,13 +77,15 @@ export class PriorityQueue<T> extends MaxHeapTree<T> implements Queue<T> {
77
77
78
78
/**
79
79
* @private
80
+ * @deprecated
80
81
*/
81
82
public add ( element : T ) : this {
82
83
throw new Error ( 'Use `queue` method instead' ) ;
83
84
}
84
85
85
86
/**
86
87
* @private
88
+ * @deprecated
87
89
*/
88
90
public poll ( ) : T {
89
91
throw new Error ( 'Use `dequeue` method instead' ) ;
You can’t perform that action at this time.
0 commit comments