Migrate to typescript

This commit is contained in:
prototypa
2023-01-02 10:51:51 -05:00
parent ba0e67b55f
commit f158d32181
28 changed files with 172 additions and 85 deletions

View File

@@ -1,11 +1,16 @@
---
import { Picture } from '@astrojs/image/components'
import { Picture } from '@astrojs/image/components';
import { findImage } from '~/utils/images';
import { getPermalink } from '~/utils/permalinks';
const { post } = Astro.props;
import type { Post } from '~/utils/posts';
export interface Props {
post: Post;
}
const { post } = Astro.props;
const image = await findImage(post.image);
---