API: Standardize "nextCompletion" promise in tasks (#2687)

This commit is contained in:
catloversg
2026-04-28 13:49:53 +07:00
committed by GitHub
parent ee3014b029
commit 36e1adf2d2
72 changed files with 1750 additions and 364 deletions
@@ -1,8 +1,8 @@
import { Work } from "../../Work/Work";
import type { PlayerBaseWork } from "../../Work/Work";
import type { PlayerObject } from "./PlayerObject";
export function startWork(this: PlayerObject, w: Work): void {
export function startWork(this: PlayerObject, w: PlayerBaseWork): void {
if (this.currentWork !== null) {
this.currentWork.finish(true);
}