personal-website/src/types.ts
2024-05-11 17:19:40 +08:00

19 lines
378 B
TypeScript

import type { CollectionEntry } from 'astro:content'
export type PostKey = 'blog'
export type CollectionPosts = CollectionEntry<PostKey>
export type Pages = 'pages'
export type CollectionPages = CollectionEntry<Pages>
export type ProjectData = Array<{
title: string
projects: Array<{
text: string
description?: string
icon?: string
href: string
}>
}>