feat: add yarn typecheck and fix all types

This commit is contained in:
DecDuck
2025-04-05 09:40:05 +11:00
parent 2a85322f64
commit 82baeb909a
16 changed files with 37 additions and 117 deletions

View File

@ -67,14 +67,14 @@ export class PriorityListIndexed<T> extends PriorityList<T> {
return index as string;
}
push(item: T, priority?: number): void {
override push(item: T, priority?: number): void {
const index = this.getIndex(item);
this.indexMap[index] = item;
super.push(item, priority);
}
pop(position?: number): PriorityTagged<T> {
override pop(position?: number): PriorityTagged<T> {
const value = super.pop(position);
const index = this.getIndex(value.object);