Remove unused interface

This commit is contained in:
Ajay 2023-02-13 13:14:23 -05:00
parent 6ee58167d8
commit 5ecb809c73

View file

@ -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({