Skip to content

Commit

Permalink
fix(templateRef): agg Component type
Browse files Browse the repository at this point in the history
fix #1757
  • Loading branch information
murongg committed Jul 6, 2022
1 parent 80570f7 commit f7dfe37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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'

Expand All @@ -9,7 +9,7 @@ import { tryOnMounted } from '@vueuse/shared'
* @param key
* @param initialValue
*/
export function templateRef<T extends HTMLElement | SVGElement | null>(
export function templateRef<T extends HTMLElement | SVGElement | Component | null>(
key: string,
initialValue: T | null = null,
): Readonly<Ref<T>> {
Expand Down

0 comments on commit f7dfe37

Please sign in to comment.