@dxos/echo
    Preparing search index...

    Function setDescription

    • Set the description of the relation. Must be called within a Relation.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: {
            "[Source]": { "~@dxos/echo/Kind": Object; id: string };
            "[Target]": { "~@dxos/echo/Kind": Object; id: string };
            "~@dxos/echo/Kind": Relation;
            id: string;
        }
      • description: string

      Returns void

      O(1); writes the field named by the schema DescriptionAnnotation.