1 | declare namespace imbameta {
|
2 | interface tokens {
|
3 | /**
|
4 | * Refers to the special type of tag, self
|
5 | */
|
6 | "tag.name self": null;
|
7 |
|
8 | /**
|
9 | * Teleport to a global
|
10 | */
|
11 | "tag.name global": null;
|
12 |
|
13 | /**
|
14 | * Teleport tag
|
15 | * @detail something
|
16 | */
|
17 | "tag.name teleport": null;
|
18 |
|
19 | /**
|
20 | * Classname added to the element
|
21 | */
|
22 | "tag.flag": null;
|
23 |
|
24 | /**
|
25 | * [Event Modifiers Documentation](https://imba.io/docs/events/modifiers)
|
26 | */
|
27 | "tag.event-modifier.name": null;
|
28 |
|
29 | /**
|
30 | * [Event Handling Documentation](https://imba.io/docs/events)
|
31 | */
|
32 | "tag.event.name": null;
|
33 |
|
34 | /**
|
35 | * Regular assignment that returns true or false depending on whether the left-hand was changed or not.
|
36 | */
|
37 | "operator.assign.=? ": boolean;
|
38 |
|
39 | /**
|
40 | * See [Meta Properties Docs](https://imba.io/docs/identifiers#meta-properties)
|
41 | */
|
42 | "identifier.symbolx": null;
|
43 |
|
44 | // TODO: Add all units from MDN (https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units)
|
45 |
|
46 | /**
|
47 | * Pixel style unit
|
48 | */
|
49 | "style.value.unit px": string;
|
50 | /**
|
51 | * Pt style unit
|
52 | */
|
53 | "style.value.unit pt": string;
|
54 |
|
55 | /** Ch */
|
56 | "style.value.unit ch": string;
|
57 |
|
58 | /** ex */
|
59 | "style.value.unit ex": string;
|
60 | /** rem */
|
61 | "style.value.unit rem": string;
|
62 | /** em */
|
63 | "style.value.unit em": string;
|
64 | /** vw */
|
65 | "style.value.unit vw": string;
|
66 | /** vh */
|
67 | "style.value.unit vh": string;
|
68 |
|
69 | /** vw */
|
70 | "style.value.unit s": string;
|
71 | /** vw */
|
72 | "style.value.unit ms": string;
|
73 |
|
74 | // Number units
|
75 |
|
76 | /**
|
77 | * Milliseconds
|
78 | */
|
79 | "unit ms": number;
|
80 |
|
81 | /**
|
82 | * Seconds. Compiles to n * 1000 (milliseconds in one second)
|
83 | */
|
84 | "unit s": number;
|
85 |
|
86 | /**
|
87 | * Days. Compiles to n * 60000 (milliseconds in one minute)
|
88 | */
|
89 | "unit minutes": number;
|
90 |
|
91 | /**
|
92 | * Hours. Compiles to n * 3600000 (milliseconds in 1 hour)
|
93 | */
|
94 | "unit hours": number;
|
95 |
|
96 | /**
|
97 | * Days. Compiles to n * 86400000 (milliseconds in one day)
|
98 | */
|
99 | "unit days": number;
|
100 |
|
101 | /**
|
102 | * Frames per second. Compiles to 1000 / n
|
103 | * Ie 60fps => 1000 / 60.
|
104 | */
|
105 | "unit fps": number;
|
106 |
|
107 | /**
|
108 | * Pixels
|
109 | */
|
110 | "unit px": string;
|
111 | }
|
112 | }
|