From 209e42578f2e95add1782480087289ee0f1207c1 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 17 Jan 2021 13:01:57 -0500 Subject: [PATCH] Fix eslint warnings --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") {