fix(compiler-sfc): treat the return value of `useTemplateRef` as a definite ref (#13197)

This commit is contained in:
山吹色御守 2025-04-14 17:08:06 +08:00 committed by GitHub
parent 32bc647fab
commit 8ae11226e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1104,6 +1104,7 @@ function walkDeclaration(
m === userImportAliases['shallowRef'] ||
m === userImportAliases['customRef'] ||
m === userImportAliases['toRef'] ||
m === userImportAliases['useTemplateRef'] ||
m === DEFINE_MODEL,
)
) {