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
@@ -81,7 +81,7 @@ export class SleeveBladeburnerWork extends SleeveWorkClass {
APICopy(sleeve: Sleeve) {
return {
type: SleeveWorkType.BLADEBURNER as "BLADEBURNER",
type: SleeveWorkType.BLADEBURNER as const,
actionType: this.actionType,
actionName: this.actionName,
tasksCompleted: this.tasksCompleted,
@@ -42,7 +42,7 @@ export class SleeveClassWork extends SleeveWorkClass {
APICopy() {
return {
type: SleeveWorkType.CLASS as "CLASS",
type: SleeveWorkType.CLASS as const,
classType: this.classType,
location: this.location,
};
@@ -49,7 +49,7 @@ export class SleeveCompanyWork extends SleeveWorkClass {
APICopy() {
return {
type: SleeveWorkType.COMPANY as "COMPANY",
type: SleeveWorkType.COMPANY as const,
companyName: this.companyName,
};
}
@@ -55,7 +55,7 @@ export class SleeveCrimeWork extends SleeveWorkClass {
APICopy() {
return {
type: SleeveWorkType.CRIME as "CRIME",
type: SleeveWorkType.CRIME as const,
crimeType: this.crimeType,
tasksCompleted: this.tasksCompleted,
cyclesWorked: this.cyclesWorked,
@@ -53,7 +53,7 @@ export class SleeveFactionWork extends SleeveWorkClass {
APICopy() {
return {
type: SleeveWorkType.FACTION as "FACTION",
type: SleeveWorkType.FACTION as const,
factionWorkType: this.factionWorkType,
factionName: this.factionName,
};
@@ -28,7 +28,7 @@ export class SleeveInfiltrateWork extends SleeveWorkClass {
APICopy() {
return {
type: SleeveWorkType.INFILTRATE as "INFILTRATE",
type: SleeveWorkType.INFILTRATE as const,
cyclesWorked: this.cyclesWorked,
cyclesNeeded: this.cyclesNeeded(),
};
@@ -18,7 +18,7 @@ export class SleeveRecoveryWork extends SleeveWorkClass {
}
APICopy() {
return { type: SleeveWorkType.RECOVERY as "RECOVERY" };
return { type: SleeveWorkType.RECOVERY as const };
}
/** Serialize the current object to a JSON save state. */
@@ -21,7 +21,7 @@ export class SleeveSupportWork extends SleeveWorkClass {
}
APICopy() {
return { type: SleeveWorkType.SUPPORT as "SUPPORT" };
return { type: SleeveWorkType.SUPPORT as const };
}
/** Serialize the current object to a JSON save state. */
@@ -19,7 +19,7 @@ export class SleeveSynchroWork extends SleeveWorkClass {
}
APICopy() {
return { type: SleeveWorkType.SYNCHRO as "SYNCHRO" };
return { type: SleeveWorkType.SYNCHRO as const };
}
/** Serialize the current object to a JSON save state. */