-
-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathtypes.ts
More file actions
64 lines (58 loc) · 1.25 KB
/
Copy pathtypes.ts
File metadata and controls
64 lines (58 loc) · 1.25 KB
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
58
59
60
61
62
63
64
export interface Rule {
match: string[];
browser: string;
profile?: string;
}
export interface ConfigOptions {
keepRunning: boolean;
hideIcon: boolean;
hideWindowOnStart: boolean;
logRequests: boolean;
checkForUpdates: boolean;
}
export interface RulesFile {
defaultBrowser: string;
defaultProfile?: string;
options?: Partial<ConfigOptions>;
rules: Rule[];
path?: string;
}
export interface LogEntry {
level: string;
msg: string;
time: string;
error?: string;
[key: string]: any; // Allow for additional dynamic fields
}
declare global {
interface Window {
finicky: {
sendMessage: (msg: any) => void;
receiveMessage: (msg: any) => void;
/** Stub queue populated by the WKUserScript before the Svelte app is ready */
_queue?: any[];
};
webkit?: {
messageHandlers?: {
finicky?: {
postMessage: (msg: string) => void;
};
};
};
}
}
export interface UpdateInfo {
version: string;
hasUpdate: boolean;
updateCheckEnabled: boolean;
downloadUrl: string;
releaseUrl: string;
}
export interface ConfigInfo {
configPath: string;
isJSConfig?: boolean;
handlers?: number;
rewrites?: number;
defaultBrowser?: string;
options?: Partial<ConfigOptions>;
}