Practic Persist - v1.0.0
    Preparing search index...

    Function persistReadDocument

    • Reads the values from stored JSON text holding a PersistDocument, converted back to what was written, so a stored Date comes back a Date. A document from an earlier version of the contract is upgraded first.

      Parameters

      • text: string | null

        Stored JSON text, or null when nothing is stored.

      Returns PersistStorableValues

      The stored values; empty when the text is missing, malformed, not a document, or written by a newer version (see persistIsNewerDocument).