diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/collection/helpers.ts | 3 |
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"; |