From e081f01bce9f81c8c0591f9fa1b6c9d45299eacd Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 25 Apr 2026 08:09:10 -0400 Subject: [PATCH] fix: updated type guard to allow textContent to be null --- packages/cli/src/lib/atproto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/lib/atproto.ts b/packages/cli/src/lib/atproto.ts index 4ff551b..99ca253 100644 --- a/packages/cli/src/lib/atproto.ts +++ b/packages/cli/src/lib/atproto.ts @@ -25,7 +25,7 @@ function isDocumentRecord(value: unknown): value is DocumentRecord { typeof v.title === "string" && typeof v.site === "string" && typeof v.path === "string" && - typeof v.textContent === "string" && + (v.textContent === undefined || typeof v.textContent === "string") && typeof v.publishedAt === "string" && (v.updatedAt === undefined || typeof v.updatedAt === "string") ); -- 2.51.2