From fa6bb0c82049a8c1cf3a5680a717075f49740869 Mon Sep 17 00:00:00 2001 From: Will Manning Date: Mon, 4 May 2026 14:54:17 -0400 Subject: [PATCH] Enable exactOptionalPropertyTypes; widen optional props that accept undefined Co-Authored-By: Claude Opus 4.7 (1M context) Signed-off-by: Will Manning --- scripts/verify.ts | 2 +- src/lib/og.tsx | 8 ++++---- tsconfig.json | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/verify.ts b/scripts/verify.ts index d2209d2..ef17275 100644 --- a/scripts/verify.ts +++ b/scripts/verify.ts @@ -18,7 +18,7 @@ const BASE = process.env.BASE ?? "http://localhost:3000"; type CheckResult = { name: string; ok: boolean; - msg?: string; + msg?: string | undefined; }; const results: CheckResult[] = []; diff --git a/src/lib/og.tsx b/src/lib/og.tsx index a18028b..82fbf68 100644 --- a/src/lib/og.tsx +++ b/src/lib/og.tsx @@ -6,8 +6,8 @@ export const OG_CONTENT_TYPE = "image/png"; export function renderOgImage(props: { title: string; - description?: string; - eyebrow?: string; + description?: string | undefined; + eyebrow?: string | undefined; }) { return new ImageResponse(