Skip to content

Commit

Permalink
feature: Add CollapsableEvents to DocumentEventMap as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zipper committed Nov 1, 2023
1 parent 717121c commit 631b28c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CollapsableItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,12 @@ declare global {
'collapsed.collapsable': CollapsableEvent
'destroy.collapsable': CustomEvent
}

interface DocumentEventMap {
'expand.collapsable': CollapsableEvent
'expanded.collapsable': CollapsableEvent
'collapse.collapsable': CollapsableEvent
'collapsed.collapsable': CollapsableEvent
'destroy.collapsable': CustomEvent
}
}

0 comments on commit 631b28c

Please sign in to comment.