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

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>
This commit is contained in:
Void 2026-11-07 12:56:49 +00:00
commit cb8f9701c3

View file

@ -98,7 +98,7 @@ async function generateSocialImage(
imageBase64,
})
const svg = await satori(imageComponent, {
const svg = await satori(imageComponent as unknown as Parameters<typeof satori>[0], {
width,
height,
fonts,