Commit b9ac9c2
committed
ts/ielib/index.ts -- new types:
- CreRef = string & {}
- Direction = IE<number, "Direction">
- StrRef = IE<number, "StrRef">
- Documented why Scope is not narrowed to a union
scripts/ts-update.ts -- generator updates:
- TYPE_MAPPING: added areref, creref, strref
- PARAM_NAME_TYPES: added Face → Direction, removed dead AreRef entry; changed endsWith to exact match
- PARAM_NAME_TYPES override logic added to trigger parser (was action-only)
- Both file headers updated with new type imports
ts/ielib/bg2/spell.ids.ts: import → import type
ts/ielib/package.json: version bump 0.1.4 → 0.2.0
scripts/ts-update.test.ts: 3 new tests for PARAM_NAME_TYPES trigger overrides
ts/ielib/bg2/actions.d.ts, triggers.d.ts: regenerated with all new types1 parent 37e9865 commit b9ac9c2
43 files changed
Lines changed: 297 additions & 164 deletions
File tree
- scripts
- ts/ielib
- bg2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
91 | 107 | | |
92 | 108 | | |
93 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | | - | |
| 82 | + | |
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
| |||
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
| 241 | + | |
| 242 | + | |
232 | 243 | | |
233 | | - | |
| 244 | + | |
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
| |||
342 | 353 | | |
343 | 354 | | |
344 | 355 | | |
345 | | - | |
346 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
347 | 359 | | |
348 | | - | |
| 360 | + | |
349 | 361 | | |
350 | 362 | | |
351 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments