diff --git a/packages/core/templateRef/index.ts b/packages/core/templateRef/index.ts index 75e4fb50d75..5a84ed584c3 100644 --- a/packages/core/templateRef/index.ts +++ b/packages/core/templateRef/index.ts @@ -1,4 +1,4 @@ -import type { Ref } from 'vue-demi' +import type { Component, Ref } from 'vue-demi' import { customRef, getCurrentInstance, onUpdated } from 'vue-demi' import { tryOnMounted } from '@vueuse/shared' @@ -9,7 +9,7 @@ import { tryOnMounted } from '@vueuse/shared' * @param key * @param initialValue */ -export function templateRef( +export function templateRef( key: string, initialValue: T | null = null, ): Readonly> {