@dxos/echo
    Preparing search index...

    Function update

    • Mutate an existing annotation value in place via a callback, wrapping the mutation in a change transaction (like Obj.update). The result is validated against the annotation's schema. Use when only an annotation needs to change; to mutate it alongside other changes (unvalidated), call Annotation.get inside an existing Obj.update instead. No-op when absent.

      Type Parameters

      • T

      Parameters

      Returns void

      O(value size) schema validation after the mutator, inside one change.