From 8670de8a3084dab5f45b009d4f4fa8c4752175bf Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 9 Sep 2021 17:55:23 -0400 Subject: [PATCH] types: HTMLElement -> Element | null --- src/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 0209a72..64498f9 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,8 +1,8 @@ export function init(options?: { - toggle?: HTMLElement; + toggle?: Element | null; classes?: { dark: string, light: string }; default?: string; storageKey?: string; - onInit?: (toggle?: HTMLElement) => unknown; - onChange?: (theme?: string, toggle?: HTMLElement) => unknown; + onInit?: (toggle?: Element | null) => unknown; + onChange?: (theme?: string, toggle?: Element | null) => unknown; }): void;