• Normalizes values / refs / getters to values. This is similar to (), except that it also normalizes getters. If the argument is a getter, it will be invoked and its return value will be returned.

    Type Parameters

    • T

    Parameters

    Returns T

    Example

    toValue(1) // 1
    toValue(ref(1)) // 1
    toValue(() => 1) // 1

    See

    https://vuejs.org/api/reactivity-utilities.html#tovalue

Generated using TypeDoc