mirror of
https://github.com/jakejarvis/dark-mode.git
synced 2025-04-29 02:30:27 -04:00
types: HTMLElement -> Element | null
This commit is contained in:
parent
e5a76a03b3
commit
8670de8a30
6
src/index.d.ts
vendored
6
src/index.d.ts
vendored
@ -1,8 +1,8 @@
|
|||||||
export function init(options?: {
|
export function init(options?: {
|
||||||
toggle?: HTMLElement;
|
toggle?: Element | null;
|
||||||
classes?: { dark: string, light: string };
|
classes?: { dark: string, light: string };
|
||||||
default?: string;
|
default?: string;
|
||||||
storageKey?: string;
|
storageKey?: string;
|
||||||
onInit?: (toggle?: HTMLElement) => unknown;
|
onInit?: (toggle?: Element | null) => unknown;
|
||||||
onChange?: (theme?: string, toggle?: HTMLElement) => unknown;
|
onChange?: (theme?: string, toggle?: Element | null) => unknown;
|
||||||
}): void;
|
}): void;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user