We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c849e2 commit acce3bbCopy full SHA for acce3bb
packages/core/templateRef/index.ts
@@ -9,8 +9,8 @@ import { tryOnMounted } from '@vueuse/shared'
9
* @param key
10
* @param initialValue
11
*/
12
-export function templateRef<T extends HTMLElement | SVGElement | Component | null>(
13
- key: string,
+export function templateRef<T extends HTMLElement | SVGElement | Component | null, Keys extends string = string>(
+ key: Keys,
14
initialValue: T | null = null,
15
): Readonly<Ref<T>> {
16
const instance = getCurrentInstance()
0 commit comments