From 631b28c32605f5a67a534d7dd27c2811e13fe243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C5=A0er=C3=BD?= Date: Wed, 1 Nov 2023 14:05:55 +0100 Subject: [PATCH] feature: Add `CollapsableEvent`s to `DocumentEventMap` as well --- src/CollapsableItem.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + } }