mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 02:44:45 +00:00
docs(web/vue): update examples in unrefElement documentation to include type parameters
This commit is contained in:
@@ -18,11 +18,11 @@ export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extend
|
|||||||
* @returns {UnRefElementReturn<El>} - The unwrapped element or undefined.
|
* @returns {UnRefElementReturn<El>} - The unwrapped element or undefined.
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const element = useTemplateRef('element');
|
* const element = useTemplateRef<HTMLElement>('element');
|
||||||
* const result = unrefElement(element); // result is the element instance
|
* const result = unrefElement(element); // result is the element instance
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const component = useTemplateRef('component');
|
* const component = useTemplateRef<Component>('component');
|
||||||
* const result = unrefElement(component); // result is the component instance
|
* const result = unrefElement(component); // result is the component instance
|
||||||
*
|
*
|
||||||
* @since 0.0.11
|
* @since 0.0.11
|
||||||
|
|||||||
Reference in New Issue
Block a user