fix: correct the type of `<details>`'s `onToggle` event handler (#10938)

Fixes #10928
This commit is contained in:
btea 2024-05-20 19:42:34 +08:00 committed by GitHub
parent 9fead52343
commit fd18ce70b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
export interface DetailsHTMLAttributes extends HTMLAttributes { export interface DetailsHTMLAttributes extends HTMLAttributes {
open?: Booleanish open?: Booleanish
onToggle?: Event onToggle?: (payload: ToggleEvent) => void
} }
export interface DelHTMLAttributes extends HTMLAttributes { export interface DelHTMLAttributes extends HTMLAttributes {