1
mirror of https://github.com/jakejarvis/dark-mode.git synced 2025-09-11 08:28:47 -04:00

clean up type defs, update example HTML

This commit is contained in:
2021-08-04 20:59:02 -04:00
parent c7a304caa4
commit f87f43c5c5
2 changed files with 39 additions and 7 deletions

6
src/index.d.ts vendored
View File

@@ -1,8 +1,6 @@
interface DarkModeOptions {
export function init(options?: {
toggle?: HTMLElement;
classes?: { dark: string, light: string };
default?: string;
storageKey?: string;
}
export function init(options?: DarkModeOptions): void;
}): void;