diff --git a/js/config.js b/js/config.ts similarity index 92% rename from js/config.js rename to js/config.ts index fd858669..1c41b153 100644 --- a/js/config.js +++ b/js/config.ts @@ -1,7 +1,18 @@ +import { Track, AppState } from "./types"; +// @ts-ignore import llamaAudio from "../mp3/llama-2.91.mp3"; +import { DeepPartial } from "redux"; + +interface Config { + initialTracks?: Track[]; + audioUrl?: string | URL; + skinUrl?: string | URL; + disableMarquee?: boolean; + initialState?: DeepPartial; +} const { hash } = window.location; -let config = {}; +let config: Config = {}; if (hash) { try { config = JSON.parse(decodeURIComponent(hash).slice(1));