/** * Extends a ref with additional properties. * * @template { MaybeRefOrGetter | ExtendedRef } [T = undefined] * @template [U = T extends ExtendedRef ? UnwrapRef : UnwrapRef] * @template { Record | null } [Extension = {}] * @template { boolean } [Shallow = false] * @template { PropertyKey } [Ignore = never] * @overload * @param { T } [value] Value to normalize into the ref to be extended. * @param { Extension } [extension] Extension object whose keys represent * the names or symbols of extendedRef properties to be defined, while * its values represent those properties' initial values or descriptors. * @param { ExtendedRefOptions ? UnwrapRef : UnwrapRef, U, Shallow, Ignore> } [options = {}] * @returns {( * T extends ExtendedRef * ? ExtendedRef, Ignore> * : ExtendedRef * )} */ export function extendedRef ? UnwrapRef : UnwrapRef, Extension extends Record | null = {}, Shallow extends boolean = false, Ignore extends PropertyKey = never>(value?: T | undefined, extension?: Extension | undefined, options?: ExtendedRefOptions ? UnwrapRef : UnwrapRef, U, Shallow, Ignore> | undefined): (T extends ExtendedRef ? ExtendedRef, Ignore> : ExtendedRef); /** * Assesses whether a value is an extendedRef object. * * @param { unknown } value * @returns { value is ExtendedRef } `true` if `value` is an extendedRef object, and `false` otherwise. */ export function isExtendedRef(value: unknown): value is ExtendedRef; import type { ExtendedRef } from '#reactivity'; import type { UnwrapRef } from 'vue'; import type { ExtendedRefOptions } from '#reactivity'; import type { Prettify } from '#utilities'; //# sourceMappingURL=extendedRef.d.ts.map