Skip to main content

Function: toSaveRecord()

toSaveRecord(value): GameSave | null

Defined in: packages/core/src/saves/records.ts:68

Reads an unknown value as a save record, normalizing legacy field names.

Parameters

value

unknown

Candidate record, typically straight out of a decoded file

Returns

GameSave | null

A normalized copy, or null if the value cannot be a save