diff options
author | Ajay Ramachandran <[email protected]> | 2021-01-17 13:01:57 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-01-17 13:01:57 -0500 |
commit | 209e42578f2e95add1782480087289ee0f1207c1 (patch) | |
tree | 7d30f5eaa0ab2423751faea8515735133415f270 | |
parent | 2fcfc989cf739ee3c4756b6bd5bad8fc2f710932 (diff) | |
download | SponsorBlock-209e42578f2e95add1782480087289ee0f1207c1.tar.gz SponsorBlock-209e42578f2e95add1782480087289ee0f1207c1.zip |
Fix eslint warnings
-rw-r--r-- | src/config.ts | 4 |
1 files 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<T>(data: T): T | Array<any>; + encodeStoredItem<T>(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") { |