Commit f75564c
committed
fix(web): unbreak kg-web tsc build for v0.12.0 release
Three type-only fixes blocking `tsc -b` (no runtime change, emitted JS
is identical — these only satisfy the type checker):
- BlockPalette: PaletteBlock.icon typed React.ElementType -> LucideIcon.
React 19's @types/react resolves className to `never` on the wide
ElementType union; every palette icon is a lucide icon anyway, so the
precise type is also the correct one.
- ForceGraph types: EngineNode.source / EngineEdge.source typed
APIGraphNode / APIGraphLink -> RawGraphNode / RawGraphLink. These now
match what transformForEngine actually receives — the store's
canonical raw-graph format (ontology optional), not the REST payload.
- useFitCamera / useOrientAndFrame: parametrize three.js's now-generic
EventDispatcher as EventDispatcher<{ start: object }> so
addEventListener('start') is not rejected against the empty default
event map ({} -> keyof {} -> never).
Tag v0.12.0 moved forward to this commit so the release tag points at a
commit where the full image set builds.1 parent 2d16733 commit f75564c
4 files changed
Lines changed: 12 additions & 9 deletions
File tree
- web/src
- components/blocks
- explorers/ForceGraph
- scene
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments