From f7dfe37c3905c7237debfdb22a65ae121b7e8699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E8=8D=A3?= <372638156@qq.com> Date: Wed, 6 Jul 2022 17:02:07 +0800 Subject: [PATCH] fix(templateRef): agg Component type fix #1757 --- packages/core/templateRef/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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> {