浏览代码

fix(types): fix tsx ref component instance type (#2486)

zdw 4 年之前
父节点
当前提交
84d4357f6f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/runtime-dom/types/jsx.d.ts

+ 1 - 1
packages/runtime-dom/types/jsx.d.ts

@@ -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