@dxos/echo
    Preparing search index...

    Function setLabel

    • Set the label of the object. Must be called within an Obj.update callback.

      NOTE: TypeScript's structural typing allows readonly objects to be passed to Mutable<T> parameters, so there is no compile-time error. Enforcement is runtime-only.

      Parameters

      • entity: { "~@dxos/echo/Kind": Object; id: string }
      • label: string

      Returns void

      O(1); writes the first LabelAnnotation accessor, a no-op without a schema.