diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index d01c33175..47b566175 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -13,7 +13,7 @@ export let search: string; export let days: number; - export let controller: SvelteComponent; + export let controller: SvelteComponent | null; let active = false; let sourceData: pb.BackendProto.GraphsOut | null = null; diff --git a/ts/graphs/bootstrap.ts b/ts/graphs/bootstrap.ts index d27eb0448..0884b99cc 100644 --- a/ts/graphs/bootstrap.ts +++ b/ts/graphs/bootstrap.ts @@ -1,6 +1,10 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +/* eslint +@typescript-eslint/no-explicit-any: "off", +*/ + import type { SvelteComponent } from "svelte/internal"; import { setupI18n } from "anki/i18n"; @@ -24,7 +28,7 @@ export { RevlogRange } from "./graph-helpers"; export function graphs( target: HTMLDivElement, graphs: SvelteComponent[], - { search = "deck:current", days = 365, controller = null } = {} + { search = "deck:current", days = 365, controller = null as any } = {} ): void { const nightMode = checkNightMode();