diff options
author | Ajay <[email protected]> | 2023-02-13 13:14:23 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2023-02-13 13:14:23 -0500 |
commit | 5ecb809c7331b3321cad15ca8acd1663a0933818 (patch) | |
tree | 68767d623e34c9c2d187904b130c56995f0b36f6 /src/config.ts | |
parent | 6ee58167d83bcf3742a6f2b42fbbe71c16ff5174 (diff) | |
download | SponsorBlock-5ecb809c7331b3321cad15ca8acd1663a0933818.tar.gz SponsorBlock-5ecb809c7331b3321cad15ca8acd1663a0933818.zip |
Remove unused interface
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/config.ts b/src/config.ts index d0487aec..d57b6499 100644 --- a/src/config.ts +++ b/src/config.ts @@ -2,7 +2,7 @@ import * as CompileConfig from "../config.json"; import * as invidiousList from "../ci/invidiouslist.json"; import { Category, CategorySelection, CategorySkipOption, NoticeVisbilityMode, PreviewBarOption, SponsorTime, Keybind, HashedValue, VideoID, SponsorHideType } from "./types"; import { isSafari, keybindEquals } from "./utils/configUtils"; -import { ProtoConfig, StorageChangesObject } from "@ajayyy/maze-utils/lib/config"; +import { ProtoConfig } from "@ajayyy/maze-utils/lib/config"; export interface Permission { canSubmit: boolean; @@ -130,20 +130,6 @@ interface SBStorage { navigationApiAvailable: boolean; } -export interface SBObject { - configLocalListeners: Array<(changes: StorageChangesObject) => unknown>; - configSyncListeners: Array<(changes: StorageChangesObject) => unknown>; - syncDefaults: SBConfig; - localDefaults: SBStorage; - cachedSyncConfig: SBConfig; - cachedLocalStorage: SBStorage; - config: SBConfig; - local: SBStorage; - forceSyncUpdate(prop: string): void; - forceLocalUpdate(prop: string): void; - resetToDefault(): void; -} - class ConfigClass extends ProtoConfig<SBConfig, SBStorage> { resetToDefault() { chrome.storage.sync.set({ |