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
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:
parent
5903a8ffcf
commit
cb8f9701c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue