API: Updating typing for ns.singularity.getCurrentWork() (#989)

This commit is contained in:
Rinne
2023-12-27 08:06:45 -03:00
committed by GitHub
parent 550829a1c3
commit eba840dcd3
47 changed files with 514 additions and 29 deletions
+2 -3
View File
@@ -79,7 +79,6 @@ interface ClassWorkParams {
}
export const isClassWork = (w: Work | null): w is ClassWork => w !== null && w.type === WorkType.CLASS;
export class ClassWork extends Work {
classType: ClassType;
location: LocationName;
@@ -132,9 +131,9 @@ export class ClassWork extends Work {
}
}
APICopy(): Record<string, unknown> {
APICopy() {
return {
type: this.type,
type: WorkType.CLASS as const,
cyclesWorked: this.cyclesWorked,
classType: this.classType,
location: this.location,