Function: readSchema()
readSchema(
filePath):Promise<SaveSchema>
Defined in: store.ts:78
Reads and validates one snapshot file.
Parameters
filePath
string
Path to a snapshot JSON file
Returns
Promise<SaveSchema>
The parsed schema
Throws
Error if the file is unreadable, is not JSON, or is not a snapshot this tool understands