fix: cast satori input to fix TS2345 in ogImage #2

Merged
void merged 1 commit from void/fix-ogimage-types into main 2026-11-09 10:24:32 +00:00
Member

npm run check failed on main: ogImage.tsx(101,28) TS2345, preact VNode not assignable to satori's React ReactNode (both type sets are installed). One-site cast via Parameters<typeof satori>[0]; no runtime change.

Verified on a clean npm ci: npm run check passes, npm test 72/72.

🤖 Generated with Claude Code

`npm run check` failed on main: `ogImage.tsx(101,28) TS2345`, preact VNode not assignable to satori's React `ReactNode` (both type sets are installed). One-site cast via `Parameters<typeof satori>[0]`; no runtime change. Verified on a clean `npm ci`: `npm run check` passes, `npm test` 72/72. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: cast satori input to its declared node type
All checks were successful
Engine CI / build-and-test (ubuntu-latest) (pull_request) Successful in 2m46s
cb8f9701c3
tsc rejects the preact VNode returned by the image component as satori's
React ReactNode (TS2345), failing npm run check on main. Cast at the one
call site; runtime is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
void merged commit cd84b8101f into main 2026-11-09 10:24:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/GameCult-Quartz!2
No description provided.