This repository was archived by the owner on Oct 26, 2026. It is now read-only.
Repository navigation
Commit deccef5
committed
fix(types): the zod face of PageNodeSchema refuses the retired page kind jsx too (objectui#12464)
The zod mirror took `kind` from the spec's PageSchema by reference, so on the
pinned 18.0.0-next.1 it still admitted 'jsx' and was wider than the narrowed
TS face (zod-mirror-parity WiderLedger TS2322). It now picks its enum out of
the spec's by reference with `.extract`, through the stripImportedDefaults
boundary, identical to the spec's enum once the resolved spec carries the
retirement.
Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2eeebe3 commit deccef5
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1293 | 1293 | | |
1294 | 1294 | | |
1295 | 1295 | | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1296 | 1307 | | |
1297 | 1308 | | |
1298 | 1309 | | |
| |||
0 commit comments