Fix eslint warnings

This commit is contained in:
Ajay Ramachandran
2021-01-17 13:01:57 -05:00
parent 2fcfc989cf
commit 209e42578f

View File

@@ -64,7 +64,7 @@ export interface SBObject {
config: SBConfig; config: SBConfig;
// Functions // Functions
encodeStoredItem<T>(data: T): T | Array<any>; encodeStoredItem<T>(data: T): T | UnencodedSegmentTimes;
convertJSON(): void; convertJSON(): void;
} }
@@ -393,7 +393,7 @@ function migrateOldFormats(config: SBConfig) {
// Migrate old "sponsorTimes" // Migrate old "sponsorTimes"
if (config["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) // Check if data is stored in the old format for SBMap (a JSON string)
if (typeof jsonData === "string") { if (typeof jsonData === "string") {