Add `<woltlab-core-toggle-button>` to the `global.d.ts`
authorAlexander Ebert <ebert@woltlab.com>
Fri, 15 Nov 2024 14:41:38 +0000 (15:41 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 15 Nov 2024 14:41:38 +0000 (15:41 +0100)
ts/global.d.ts

index e17ba42deb9c26633ae6396bfd1e6fbda7e85201..66ed95510d2bf58f9af3ac61bbd84bc2d0c6b20c 100644 (file)
@@ -124,6 +124,12 @@ declare global {
     set url(url: string);
   }
 
+  interface WoltlabCoreToggleButtonElement extends HTMLElement {
+    toggle(): void;
+    get checked(): boolean;
+    set checked(checked: boolean);
+  }
+
   interface HTMLElementTagNameMap {
     "fa-brand": FaBrand;
     "fa-icon": FaIcon;
@@ -132,9 +138,10 @@ declare global {
     "woltlab-core-date-time": WoltlabCoreDateTime;
     "woltlab-core-file": WoltlabCoreFileElement;
     "woltlab-core-file-upload": WoltlabCoreFileUploadElement;
+    "woltlab-core-google-maps": WoltlabCoreGoogleMapsElement;
     "woltlab-core-loading-indicator": WoltlabCoreLoadingIndicatorElement;
     "woltlab-core-pagination": WoltlabCorePaginationElement;
-    "woltlab-core-google-maps": WoltlabCoreGoogleMapsElement;
     "woltlab-core-reaction-summary": WoltlabCoreReactionSummaryElement;
+    "woltlab-core-toggle-button": WoltlabCoreToggleButtonElement;
   }
 }