@dxos/echo
    Preparing search index...

    Variable setConst

    set: {
        <T>(
            annotation: Annotation.Annotation<T>,
            value: T,
        ): (target: { "~@dxos/echo/Kind": K; id: Key.EntityId }) => void;
        <T>(
            target: { "~@dxos/echo/Kind": K; id: Key.EntityId },
            annotation: Annotation.Annotation<T>,
            value: T,
        ): void;
    } = ...

    Set the value of an annotation on an entity instance. For schema-level writes use the annotation instance method (e.g. ColorAnnotation.set('red')). For setting an annotation value on a dictionary, use setDictionary.

    Type declaration

    O(value size) schema validation, then an O(1) meta-dictionary write.