@dxos/client
    Preparing search index...

    Variable updateTextConst

    updateText: <T extends BaseObject>(
        obj: AnyLiveObject<T>,
        path: KeyPath,
        newText: string,
    ) => AnyLiveObject<T>

    Helper that updates the text value at the given path. Caller must ensure the path is valid.

    Type declaration

      • <T extends BaseObject>(
            obj: AnyLiveObject<T>,
            path: KeyPath,
            newText: string,
        ): AnyLiveObject<T>
      • Type Parameters

        • T extends BaseObject

        Parameters

        • obj: AnyLiveObject<T>

          The object to update.

        • path: KeyPath

          The path to the text value to update.

        • newText: string

          The new text value.

        Returns AnyLiveObject<T>

        The updated object.