From cb8f9701c3dde7e5de3237512d6c4ab687bb3315 Mon Sep 17 00:00:00 2001 From: Void Date: Sat, 7 Nov 2026 12:56:49 +0000 Subject: [PATCH] fix: cast satori input to its declared node type 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 --- quartz/plugins/emitters/ogImage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/emitters/ogImage.tsx b/quartz/plugins/emitters/ogImage.tsx index dae44b9..f0e6015 100644 --- a/quartz/plugins/emitters/ogImage.tsx +++ b/quartz/plugins/emitters/ogImage.tsx @@ -98,7 +98,7 @@ async function generateSocialImage( imageBase64, }) - const svg = await satori(imageComponent, { + const svg = await satori(imageComponent as unknown as Parameters[0], { width, height, fonts, -- 2.47.3