vue-lynx / toRefs

Function: toRefs()

function toRefs<T>(object): ToRefs<T>

Converts a reactive object to a plain object where each property of the resulting object is a ref pointing to the corresponding property of the original object. Each individual ref is created using toRef.

Type Parameters

Type Parameter
T extends object

Parameters

ParameterTypeDescription
objectTReactive object to be made into an object of linked refs.

Returns

ToRefs<T>

See

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

Defined in

node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:559