@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function snapshotField

    • Build a Snapshot wrapper for one field of a snapshot object.

      Returns undefined when no snapshot exists for the id at all (first sync), or { value } when the snapshot exists — value may itself be undefined if the field is a legitimate "no value" sentinel (e.g. Linear's priority).

      Type Parameters

      • T extends object
      • K extends string | number | symbol

      Parameters

      • snapshot: undefined | T
      • key: K

      Returns ConnectorSync.Snapshot<T[K]>