summaryrefslogtreecommitdiff
path: root/source/options-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/options-storage.ts')
-rw-r--r--source/options-storage.ts4
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}`];