diff options
author | 2019-08-31 01:26:28 +0700 | |
---|---|---|
committer | 2019-08-31 01:26:28 +0700 | |
commit | 8d0393542bd712d7bb7f93874118dedd07b62c7b (patch) | |
tree | 0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/options-storage.ts | |
parent | 0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff) | |
download | refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.gz refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.zst refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.zip |
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/options-storage.ts')
-rw-r--r-- | source/options-storage.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/options-storage.ts b/source/options-storage.ts index 6330ac8d..83bbdb6f 100644 --- a/source/options-storage.ts +++ b/source/options-storage.ts @@ -1,4 +1,4 @@ -import OptionsSync from 'webext-options-sync'; +import OptionsSync, {Migration} from 'webext-options-sync'; import {isBackgroundPage} from 'webext-detect-page'; import {getAdditionalPermissions} from 'webext-additional-permissions'; @@ -10,7 +10,7 @@ export interface RGHOptions { [featureName: string]: string | boolean; } -function featureWasRenamed(from: string, to: string): any { // TODO: any should probably be `Migration` after `webext-options-sync`'s types are fixed +function featureWasRenamed(from: string, to: string): Migration<RGHOptions> { return (options: RGHOptions) => { if (typeof options[`feature:${from}`] === 'boolean') { options[`feature:${to}`] = options[`feature:${from}`]; |