summaryrefslogtreecommitdiff
path: root/src/lib/collection
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/collection')
-rw-r--r--src/lib/collection/helpers.ts3
1 files changed, 3 insertions, 0 deletions
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<T extends Entry, U>(
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";