Skip to content

Type the run store - #258

Merged
jtklein-agents merged 2 commits into
spec/236-page-typescriptfrom
248-typescript-run-store
Nov 17, 2026
Merged

jtklein-agents merged 2 commits into
spec/236-page-typescriptfrom
248-typescript-run-store

Conversation

@jtklein-agents

@jtklein-agents jtklein-agents commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #248. Part of #236.

Summary

 src/
 ├── app/store/
-│   └── Run.js
+│   └── Run.ts              # typed members, return types, no cast on window.rendererBridge
 ├── common/rendererBridge.ts  # onRunStdout/Stderr/Finished/Error, onAstralSuccess take typed payloads
 ├── preload/index.ts          # same listener types
 └── main/
+    ├── processHelpers.ts   # RunOutputPayload
+    ├── startRun.ts         # RunFinishedPayload, RunErrorPayload
+    └── astral.ts           # AstralSuccessPayload

Also adds @types/lodash (dev). Two commits: R100 rename, then typing.

Evidence

  • Before: Run.js is untyped JavaScript with /** @type {any} */ ( window ) casts.
    After: zero tsc diagnostics for Run.ts under plain and --noImplicitAny; yarn lint, yarn react-test (474 tests) and yarn build pass.

Merge Danger

Door: two-way

Blast Radius: types only

Three @ts-expect-error accommodations keep behaviour as is:

Run yarn install locally for @types/lodash before yarn typecheck:baseline.

🤖 Generated with Claude Code

jtklein-agents and others added 2 commits November 17, 2026 08:46
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Event payloads the run subscribes to get named types in main and tighten
the RendererBridge listeners. Adds @types/lodash. Two args payloads and
the numSites sum keep their behaviour under @ts-expect-error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit d163682 into spec/236-page-typescript Nov 17, 2026
9 checks passed
@jtklein-agents jtklein-agents mentioned this pull request Nov 17, 2026
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant