1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

docs(web/vue): update examples in unrefElement documentation to include type parameters

This commit is contained in:
2025-08-15 04:38:46 +07:00
parent e035d1abca
commit 0cfdce7456

View File

@@ -18,11 +18,11 @@ export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extend
* @returns {UnRefElementReturn<El>} - The unwrapped element or undefined.
*
* @example
* const element = useTemplateRef('element');
* const element = useTemplateRef<HTMLElement>('element');
* const result = unrefElement(element); // result is the element instance
*
* @example
* const component = useTemplateRef('component');
* const component = useTemplateRef<Component>('component');
* const result = unrefElement(component); // result is the component instance
*
* @since 0.0.11