Update import of type definition

This commit is contained in:
Sat Naing
2022-09-22 20:51:35 +06:30
parent 9e351fe26d
commit b8a08dc794
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import Footer from "@components/Footer.astro";
import Tag from "@components/Tag.astro"; import Tag from "@components/Tag.astro";
import Datetime from "@components/Datetime"; import Datetime from "@components/Datetime";
import type { MarkdownInstance } from "astro"; import type { MarkdownInstance } from "astro";
import type { Frontmatter } from "@utils/types"; import type { Frontmatter } from "src/types";
export interface Props { export interface Props {
post: MarkdownInstance<Frontmatter>; post: MarkdownInstance<Frontmatter>;
+1 -1
View File
@@ -6,8 +6,8 @@ import LinkButton from "@components/LinkButton.astro";
import Hr from "@components/Hr.astro"; import Hr from "@components/Hr.astro";
import Card from "@components/Card"; import Card from "@components/Card";
import getSortedPosts from "@utils/getSortedPosts"; import getSortedPosts from "@utils/getSortedPosts";
import type { Frontmatter } from "@utils/types";
import socialLinks from "@utils/socialLinks"; import socialLinks from "@utils/socialLinks";
import type { Frontmatter } from "src/types";
const posts = await Astro.glob<Frontmatter>("../contents/*.md"); const posts = await Astro.glob<Frontmatter>("../contents/*.md");
+1 -1
View File
@@ -4,7 +4,7 @@ import PostDetails from "@layouts/PostDetails.astro";
import getSortedPosts from "@utils/getSortedPosts"; import getSortedPosts from "@utils/getSortedPosts";
import getPageNumbers from "@utils/getPageNumbers"; import getPageNumbers from "@utils/getPageNumbers";
import type { MarkdownInstance } from "astro"; import type { MarkdownInstance } from "astro";
import type { Frontmatter } from "@utils/types"; import type { Frontmatter } from "src/types";
export interface Props { export interface Props {
post: MarkdownInstance<Frontmatter>; post: MarkdownInstance<Frontmatter>;
+2 -2
View File
@@ -4,10 +4,10 @@ import Main from "@layouts/Main.astro";
import Header from "@components/Header.astro"; import Header from "@components/Header.astro";
import Footer from "@components/Footer.astro"; import Footer from "@components/Footer.astro";
import Card from "@components/Card"; import Card from "@components/Card";
import type { MarkdownInstance } from "astro";
import type { Frontmatter } from "@utils/types";
import getUniqueTags from "@utils/getUniqueTags"; import getUniqueTags from "@utils/getUniqueTags";
import getPostsByTag from "@utils/getPostsByTag"; import getPostsByTag from "@utils/getPostsByTag";
import type { MarkdownInstance } from "astro";
import type { Frontmatter } from "src/types";
export interface Props { export interface Props {
post: MarkdownInstance<Frontmatter>; post: MarkdownInstance<Frontmatter>;