Automerge Repo - v2.5.2-alpha.5
    Preparing search index...

    Type Alias RefChangeFn<T>Experimental

    RefChangeFn: (val: T extends string ? MutableText : T) => T | void

    Return a new value to update primitive values, or void to skip the update. For strings, receives a MutableText object with splice/updateText methods.

    Note: Objects and arrays should be mutated in place (not returned). Returning non-primitives will trigger a runtime warning.

    This API is experimental and may change in future versions.

    Type Parameters

    • T

    Type declaration