-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathwindow.d.ts
46 lines (39 loc) · 1022 Bytes
/
window.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
/* eslint-disable @typescript-eslint/consistent-type-imports */
enum RumErrorLevel {
DEBUG = 'debug',
ERROR = 'error',
FATAL = 'fatal',
INFO = 'info',
WARN = 'warn',
}
interface RumLogData {
message?: string;
block?: string;
method?: string;
source?: string;
sourceMethod?: string;
type?: string;
page?: string;
service?: string;
level?: RumErrorLevel;
additional?: {
[key: string]: string;
};
}
interface RumCounter {
ERROR_LEVEL: typeof RumErrorLevel;
logError: (data: RumLogData, error?: Error) => void;
}
interface Window {
Ya?: {
Rum?: RumCounter;
};
ydbEditor?: Monaco.editor.IStandaloneCodeEditor;
web_version?: boolean;
custom_backend?: string;
meta_backend?: string;
code_assist_backend?: string;
userSettings?: import('../services/settings').SettingsObject;
systemSettings?: import('../services/settings').SettingsObject;
api: import('../services/api/index').YdbEmbeddedAPI;
}