diff --git a/src/CollapsableItem.ts b/src/CollapsableItem.ts index 6a08324..dbac440 100644 --- a/src/CollapsableItem.ts +++ b/src/CollapsableItem.ts @@ -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 + } }