1.1 KiB
1.1 KiB
WRNexusJS v0.6.0 typecheck correction R2
This correction addresses the first local Bun validation failures reported after the focused issues 1-7 build.
Corrected
- Added a valid root
.vscode/settings.jsonso the v0.6 JSON validator succeeds. - Store definitions now model shared, client-only, and server-only state as separate inferred object types.
- Store actions no longer infer as
never; action methods remain callable from returned store instances. - Renamed the internal initialization promise from
readytowhenReadyso application state may safely declare a field namedready. - Updated generated browser-store modules to use the same collision-safe
whenReadyfield.
Focused validation
packages/store/test/store.test.tspasses strict TypeScript checking with a local Bun test declaration shim.- A live Node type-stripping probe passed server/client action dispatch, computed state, server-state exclusion, and the
readystate collision case. node scripts/validate-0.6.mjsreports 12 passed, 0 failed in the packaging environment; only the expected warning remains because Bun is unavailable there.