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
Performance
O(1); writes the first LabelAnnotation accessor, a no-op without a schema.
Set the label of the object. Must be called within an
Obj.updatecallback.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.