src/app/data/savefile-expanded/sections/Area/AreaPuzzle.ts
import { SaveFileService } from './../../../savefile.service'; export class AreaPuzzle { constructor(saveFile?: SaveFileService) {if statements must be braced if (saveFile !== undefined) this.load(saveFile as SaveFileService); } public load(saveFile: SaveFileService) { this.firstTrashcanLock = saveFile.getByte(0x29EF); this.secondTrashcanLock = saveFile.getByte(0x29F0); this.oppAfterWrongAnsw = saveFile.getByte(0x2CE4); } public save(saveFile: SaveFileService) { saveFile.setByte(0x29EF, this.firstTrashcanLock); saveFile.setByte(0x29F0, this.secondTrashcanLock); saveFile.setByte(0x2CE4, this.oppAfterWrongAnsw); } Type number trivially inferred from a number literal, remove type annotation public firstTrashcanLock: number = 0;Type number trivially inferred from a number literal, remove type annotation public secondTrashcanLock: number = 0;Type number trivially inferred from a number literal, remove type annotation public oppAfterWrongAnsw: number = 0;}