-
Notifications
You must be signed in to change notification settings - Fork 199
/
index.d.ts
41 lines (31 loc) · 887 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import type defaultPrefs from '~services/preferences';
type Prefs = typeof defaultPrefs;
type PrefRecords = Record<string, Pref>;
interface PrefStore {
global: Prefs;
local: PrefRecords;
}
interface TabSession {
brMode: boolean;
origin?: string;
tabID?;
}
type TabSessionStore = Record<string, TabSession>;
type UpdateCallback = (tabSessions: PrefRecords) => PrefRecords;
type SetPrefsExternal = (getOrigin: () => Promise<string>, scope: string, newPrefs: Prefs, deleteOldLocal?: boolean) => Promise<void>;
type removeTabSession = (getTab: () => Promise<chrome.tabs.Tab>) => Promise<void>;
interface AppConfigPref {
displayColorMode: DisplayColorMode;
}
declare namespace NodeJS {
interface ProcessEnv {
DEBUG: string;
TARGET: string;
SHORTCUT: string;
VERSION: string;
NAME: string;
HOME_URL: string;
ENABLE_TRACKING: string
}
}
declare module '*.scss';