From a8c6eb9542e4baba3ce05da454fc52548214ba06 Mon Sep 17 00:00:00 2001 From: João Augusto Costa Branco Marado Torres Date: Sun, 6 Jul 2025 15:45:22 -0300 Subject: feat: kind of integrate activity pub MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Augusto Costa Branco Marado Torres --- src/lib/collection/helpers.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') diff --git a/src/lib/collection/helpers.ts b/src/lib/collection/helpers.ts index 83eb21d..587180b 100644 --- a/src/lib/collection/helpers.ts +++ b/src/lib/collection/helpers.ts @@ -96,6 +96,9 @@ export async function fromPosts( const entries = await getCollection<"blog", T>("blog", filter); return predicate(entries); } +export const isEntry = ( + _entry: CollectionEntry<"blog">, +): _entry is Entry => true; export const isOriginal = ( entry: CollectionEntry<"blog">, ): entry is OriginalEntry => entry.data.kind === "original"; -- cgit v1.2.3