Skip to content
Permalink
Browse files
fix(types/tsx): allow ref_for type on tsx elements
  • Loading branch information
yyx990803 committed Jan 16, 2022
1 parent 5ac7030 commit 78df8c78c4539d2408278d1a11612b6bbc47d22f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -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
@@ -288,6 +288,7 @@ describe('with object props', () => {
key={'foo'}
// should allow ref
ref={'foo'}
ref_for={true}
/>
)

0 comments on commit 78df8c7

Please sign in to comment.