fix(types/tsx): allow ref_for type on tsx elements

This commit is contained in:
Evan You
2022-01-16 15:54:58 +08:00
parent 5ac703055f
commit 78df8c78c4
2 changed files with 3 additions and 0 deletions

View File

@@ -1312,6 +1312,8 @@ type ReservedProps = {
| string
| RuntimeCore.Ref
| ((ref: Element | RuntimeCore.ComponentPublicInstance | null) => void)
ref_for?: boolean
ref_key?: string
}
type ElementAttrs<T> = T & ReservedProps