Updates the type guard to allow textContent: null for documents, resolves #30
+1
-1
Diff
round #0
+1
-1
packages/cli/src/lib/atproto.ts
+1
-1
packages/cli/src/lib/atproto.ts
···
25
25
typeof v.title === "string" &&
26
26
typeof v.site === "string" &&
27
27
typeof v.path === "string" &&
28
-
typeof v.textContent === "string" &&
28
+
(v.textContent === undefined || typeof v.textContent === "string") &&
29
29
typeof v.publishedAt === "string" &&
30
30
(v.updatedAt === undefined || typeof v.updatedAt === "string")
31
31
);
History
1 round
0 comments
stevedylan.dev
submitted
#0
1 commit
expand
collapse
fix: updated type guard to allow textContent to be null
merge conflicts detected
expand
collapse
expand
collapse
- packages/cli/src/lib/atproto.ts:25