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

    Function persistIsStorable

    • Proves at runtime that a value is one a layer stores (PersistStorable) before it enters a store. Shared references are allowed and come back as copies, but a value that contains itself is refused, since it has no finite stored form.

      Type Parameters

      • T

      Parameters

      • value: T

        Value about to be stored.

      • ancestors: object[] = []

        Objects that contain the value, to find cycles; callers leave it out.

      Returns value is T & PersistStorable