-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathcustom.ts
More file actions
39 lines (33 loc) · 946 Bytes
/
custom.ts
File metadata and controls
39 lines (33 loc) · 946 Bytes
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
/**
* Global type declarations.
*
* NOTE: The canonical type definitions now live in types/*.ts.
* These ambient declarations exist for backward compatibility so that
* existing .js/.jsx files (which don't import types explicitly) can
* still reference Account, Character, etc. in JSDoc or inline comments.
*
* As parsers/components migrate to .ts/.tsx, prefer importing from
* '../types' or '../types/common' instead of relying on these globals.
*/
interface Window {
gtag?: (...args: unknown[]) => void;
}
// Re-export canonical types as ambient globals for JS files
// These mirror the shapes in types/*.ts
interface ValueAndBreakdown {
value: number;
breakdown: { name?: string; value?: number; title?: string }[];
}
interface Account {
[key: string]: any;
}
interface Character {
[key: string]: any;
}
interface Data {
account: Account;
characters: Character[];
}
interface IdleonData {
[key: string]: any;
}