From 755ac19dbaa4c6a8037646e852c6841c0f9f9910 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 5 Aug 2021 08:41:45 -0400 Subject: [PATCH] small cleanup --- .github/workflows/ci.yml | 1 + src/index.d.ts | 4 ++-- src/index.js | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5977bc2..a67258b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,4 @@ jobs: node-version: '14.x' - run: yarn install --frozen-lockfile - run: yarn lint + - run: yarn build diff --git a/src/index.d.ts b/src/index.d.ts index 73e961e..0209a72 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -3,6 +3,6 @@ export function init(options?: { classes?: { dark: string, light: string }; default?: string; storageKey?: string; - onInit?: (toggle?: HTMLElement) => void; - onChange?: (theme?: string, toggle?: HTMLElement) => void; + onInit?: (toggle?: HTMLElement) => unknown; + onChange?: (theme?: string, toggle?: HTMLElement) => unknown; }): void; diff --git a/src/index.js b/src/index.js index b51c099..5a4da58 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,6 @@ "use strict"; const init = function (options) { - // { toggle, classes: { light, dark }, default, storageKey } options = options || {}; // use a specified element(s) to trigger swap when clicked