fix(types): added name attribute support to details tag (#11823)

close #11821
This commit is contained in:
白雾三语 2024-09-05 17:53:05 +08:00 committed by GitHub
parent 9b7797d0d1
commit c74176ec7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -121,3 +121,5 @@ expectType<JSX.Element>(
xmlns="http://www.w3.org/2000/svg"
/>,
)
// details
expectType<JSX.Element>(<details name="details" />)

View File

@ -405,6 +405,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
}
export interface DetailsHTMLAttributes extends HTMLAttributes {
name?: string
open?: Booleanish
onToggle?: (payload: ToggleEvent) => void
}