1
mirror of https://github.com/jakejarvis/dark-mode.git synced 2025-04-25 19:55:22 -04:00

types: HTMLElement -> Element | null

This commit is contained in:
Jake Jarvis 2021-09-09 17:55:23 -04:00
parent e5a76a03b3
commit 8670de8a30
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

6
src/index.d.ts vendored
View File

@ -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;