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

This commit is contained in:
zdw
2021-08-17 04:51:41 +08:00
committed by GitHub
parent 092bdcdf58
commit 84d4357f6f

View 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