Przeglądaj źródła

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

zdw 4 lat temu
rodzic
commit
84d4357f6f
1 zmienionych plików z 1 dodań i 1 usunięć
  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