mirror of
https://github.com/jakejarvis/dark-mode.git
synced 2026-11-21 03:36:44 -05:00
types: HTMLElement -> Element | null
This commit is contained in:
1 file changed
+3
-3
Vendored
+3
-3
@@ -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;
|
||||
Reference in new issue
Block a user