diff --git a/packages/runtime-core/src/helpers/useTemplateRef.ts b/packages/runtime-core/src/helpers/useTemplateRef.ts index 69e5669b6..12663962a 100644 --- a/packages/runtime-core/src/helpers/useTemplateRef.ts +++ b/packages/runtime-core/src/helpers/useTemplateRef.ts @@ -3,8 +3,8 @@ import { getCurrentInstance } from '../component' import { warn } from '../warning' import { EMPTY_OBJ } from '@vue/shared' -export function useTemplateRef( - key: string, +export function useTemplateRef( + key: Keys, ): Readonly> { const i = getCurrentInstance() const r = shallowRef(null)