diff --git a/src/config.ts b/src/config.ts index e355d795..5290fb61 100644 --- a/src/config.ts +++ b/src/config.ts @@ -64,7 +64,7 @@ export interface SBObject { config: SBConfig; // Functions - encodeStoredItem(data: T): T | Array; + encodeStoredItem(data: T): T | UnencodedSegmentTimes; convertJSON(): void; } @@ -393,7 +393,7 @@ function migrateOldFormats(config: SBConfig) { // Migrate old "sponsorTimes" if (config["sponsorTimes"]) { - let jsonData: any = config["sponsorTimes"]; + let jsonData: unknown = config["sponsorTimes"]; // Check if data is stored in the old format for SBMap (a JSON string) if (typeof jsonData === "string") {