Commit f296ce1

HPCesia <me@hpcesia.com>
2025-01-29 15:12:04
refactor: remove unused type
1 parent cae1096
Changed files (1)
src
pages
src/pages/archives/[...time].astro
@@ -6,13 +6,12 @@ import { getTimeArchives } from '@utils/content-utils';
 
 type AllTimeArchives = Awaited<ReturnType<typeof getTimeArchives>>;
 type YearArchives = AllTimeArchives[number];
-type MonthArchives = YearArchives['months'][number];
 
 export async function getStaticPaths() {
   const timeReducedPosts = await getTimeArchives();
   let paths: {
     params: { time: string | undefined };
-    props: { group: AllTimeArchives | YearArchives | MonthArchives };
+    props: { group: AllTimeArchives | YearArchives };
   }[] = [{ params: { time: undefined }, props: { group: timeReducedPosts } }];
   paths = [
     ...paths,