mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 00:31:25 +10:00
feat: add yarn typecheck and fix all types
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user