Explorar el Código

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

zdw hace 4 años
padre
commit
84d4357f6f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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