mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-20 02:51:23 +01:00
demonstrate module interop
This commit is contained in:
parent
7903cfcd65
commit
ae9d4d9967
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @template T
|
||||
*/
|
||||
class PriorityQueue extends Array {
|
||||
export class PriorityQueue extends Array {
|
||||
/**
|
||||
* @param {{comparator: (a:T, B:T) => number | boolean}} options
|
||||
*/
|
||||
|
|
@ -25,5 +25,5 @@ class PriorityQueue extends Array {
|
|||
return this.shift();
|
||||
}
|
||||
}
|
||||
|
||||
export default PriorityQueue;
|
||||
globalThis.PriorityQueue = PriorityQueue;
|
||||
Loading…
Add table
Add a link
Reference in a new issue