]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): fix tsx ref component instance type (#2486)
authorzdw <252675163@qq.com>
Mon, 16 Aug 2021 20:51:41 +0000 (04:51 +0800)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 20:51:41 +0000 (16:51 -0400)
packages/runtime-dom/types/jsx.d.ts

index 431541fdd3764642cc28e73f002b5c12d14950cf..c3d00960d2414b54c2119b1dd9437b7df3316344 100644 (file)
@@ -1309,7 +1309,7 @@ type ReservedProps = {
   ref?:
     | string
     | RuntimeCore.Ref
-    | ((ref: Element | RuntimeCore.ComponentInternalInstance | null) => void)
+    | ((ref: Element | RuntimeCore.ComponentPublicInstance | null) => void)
 }
 
 type ElementAttrs<T> = T & ReservedProps