mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
API: Updating typing for ns.singularity.getCurrentWork() (#989)
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
||||
import { IReviverValue } from "../utils/JSONReviver";
|
||||
import type { IReviverValue } from "../utils/JSONReviver";
|
||||
import type { Task } from "@nsdefs";
|
||||
|
||||
export abstract class Work {
|
||||
type: WorkType;
|
||||
@@ -13,7 +14,7 @@ export abstract class Work {
|
||||
|
||||
abstract process(cycles: number): boolean;
|
||||
abstract finish(cancelled: boolean, suppressDialog?: boolean): void;
|
||||
abstract APICopy(): Record<string, unknown>;
|
||||
abstract APICopy(): Task;
|
||||
abstract toJSON(): IReviverValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user