From 15a0bd04c3b53bf7ae0f7434b526443a87261ba1 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 11 Sep 2022 14:05:17 +0630 Subject: [PATCH] Replace internal type with external Frontmatter type --- src/utils/getSortedPosts.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/utils/getSortedPosts.ts b/src/utils/getSortedPosts.ts index d032202..213ed51 100644 --- a/src/utils/getSortedPosts.ts +++ b/src/utils/getSortedPosts.ts @@ -1,14 +1,5 @@ import type { MarkdownInstance } from "astro"; - -interface Frontmatter { - title: string; - description: string; - author: string; - datetime: string; - slug: string; - featured: boolean; - tags: string[]; -} +import type { Frontmatter } from "./types"; const getSortedPosts = (posts: MarkdownInstance[]) => posts.sort(