added type definitions

This commit is contained in:
ferdous
2023-05-21 11:42:20 +06:00
parent 1431ce1d35
commit 41cf468580
27 changed files with 115 additions and 58 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import config from "@/config/config.json";
import { humanize, plainify, slugify } from "@/lib/utils/textConverter";
import { FaRegFolder, FaRegUserCircle } from "react-icons/fa/index.js";
const { summary_length, blog_folder } = config.settings;
const { summary_length, blog_folder }: {summary_length: number, blog_folder: string} = config.settings;
const { data } = Astro.props;
const { title, image, date, author, categories } = data.data;
---