Migrate more code to typescript
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user