日本語
@eightkk/vue-weave / core / parseWeaveSnapshot
Function: parseWeaveSnapshot()
parseWeaveSnapshot(
text,options?):ParseWeaveSnapshotResult
Defined in: src/core/snapshot.ts:340
Check JSON text and return a typed snapshot. Checks, in order: JSON syntax, schema version (applying the supplied migrations), field types and ranges, duplicate IDs, references, scheduling input of planning data, and references of the saved view. Codec values stay encoded and registry names stay unresolved; restoreWeaveSnapshot does both. A snapshot is returned only when there is no error; warnings (for example a dependency cycle in a plan) come with it. Never throws for bad input. Repeated JSON keys are read as the last one, as JSON.parse does.
Parameters
text
string
options?
ParseWeaveSnapshotOptions = {}