-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwindow.d.ts
More file actions
42 lines (41 loc) · 1.04 KB
/
window.d.ts
File metadata and controls
42 lines (41 loc) · 1.04 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
interface Logger {
logs: string[];
}
// eslint-disable-next-line no-unused-vars
interface Window {
sim: {
getTime: () => number;
pause: () => void;
start: () => void;
// eslint-disable-next-line no-unused-vars
setSpeed: (value: number) => void;
// eslint-disable-next-line no-unused-vars
get: (id: number) => any | undefined;
// eslint-disable-next-line no-unused-vars
getOrThrow: (id: number) => any;
} & Record<string, any>;
renderer: any;
select: (_ids: number[]) => void;
selected: {
id: number;
} | null;
dev: boolean;
cheats: Record<string, any>;
indexer: {
search(_components: readonly string[]): Iterable<any>;
searchBySector(
_sectorId: number,
_components: readonly string[],
_tags: readonly string[]
): Iterable<any>;
};
notify: (_notification: {
dismissable?: boolean;
expires?: number;
icon: "question" | "exclamation";
message: string;
type: "success" | "warning" | "error";
onClick: () => void;
}) => void;
log: Logger;
}