mirror of
https://github.com/quartz-community/og-image.git
synced 2026-07-22 02:50:23 +00:00
fix: cast Preact VNode to satori parameter type for @types/react compatibility
This commit is contained in:
parent
829d1c8b60
commit
14cc335449
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ async function generateSocialImage(
|
|||
iconBase64,
|
||||
});
|
||||
|
||||
const svg = await satori(imageComponent, {
|
||||
const svg = await satori(imageComponent as Parameters<typeof satori>[0], {
|
||||
width,
|
||||
height,
|
||||
fonts,
|
||||
|
|
|
|||
Loading…
Reference in a new issue