forked from ansh/jiffyreader.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
57 lines (46 loc) · 1.12 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
interface Prefs {
onPageLoad: boolean;
scope: string; //"global" | "local"
lineHeight: number;
edgeOpacity: number;
saccadesColor: string;
saccadesStyle: string;
saccadesInterval: number;
fixationStrength: number;
fixationEdgeOpacity: number;
MAX_FIXATION_PARTS: number;
FIXATION_LOWER_BOUND: number;
BR_WORD_STEM_PERCENTAGE: number;
}
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;
}
}
declare module '*.scss';