Migrate more code to typescript

This commit is contained in:
prototypa
2023-01-02 12:20:26 -05:00
parent 6998cc7602
commit 024825ec59
14 changed files with 68 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
---
import Item from '~/components/blog/GridItem.astro';
import type { Post } from '~/utils/posts';
import type { Post } from "~/types"
export interface Props {
posts: Array<Post>;

View File

@@ -4,7 +4,7 @@ import { Picture } from '@astrojs/image/components';
import { findImage } from '~/utils/images';
import { getPermalink } from '~/utils/permalinks';
import type { Post } from '~/utils/posts';
import type { Post } from "~/types"
export interface Props {
post: Post;

View File

@@ -1,6 +1,6 @@
---
import Item from '~/components/blog/ListItem.astro';
import type { Post } from '~/utils/posts';
import type { Post } from "~/types"
export interface Props {
posts: Array<Post>;

View File

@@ -6,7 +6,7 @@ import { getPermalink } from '~/utils/permalinks';
import { findImage } from '~/utils/images';
import { getFormattedDate } from '~/utils/utils';
import type { Post } from '~/utils/posts';
import type { Post } from "~/types"
export interface Props {
post: Post;

View File

@@ -5,7 +5,7 @@ import SocialShare from '~/components/atoms/SocialShare.astro';
import { getFormattedDate } from '~/utils/utils';
import type { Post } from '~/utils/posts';
import type { Post } from "~/types"
export interface Props {
post: Post;