Commit b5fd07e
Fix mistyped ID parameters on Templates.load and Hoppers.position
Templates.load(template_id, hopper_id): hopper_id was annotated as
TemplateId, which is structurally identical to HopperId but misleading
in IDE hints — readers might assume the second argument should be a
template ID. Introduce HopperId in the same module and use it.
Hoppers.position(hopper_id, position_id): same flavour of bug —
position_id was annotated as HopperId. Add a PositionId alias and use
it for the second parameter.
Both are docs-only (no runtime change) but matter for static analysis
and developer-experience accuracy.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4b8c5e6 commit b5fd07e
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments