chore: clean up parsedcontent types
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { getPrettyDate, getUtcDate } from "~~/shared/metadata";
|
||||
import { BlogParsedContent, StoryParsedContent } from "~~/shared/types";
|
||||
import { AnyParsedContent } from "~~/shared/types";
|
||||
|
||||
const props = defineProps<{ doc: StoryParsedContent | BlogParsedContent }>();
|
||||
const props = defineProps<{ doc: AnyParsedContent }>();
|
||||
|
||||
const prettyDate = getPrettyDate(props.doc);
|
||||
const utcDate = getUtcDate(props.doc);
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import type { StoryParsedContent, BlogParsedContent } from "@/shared/types";
|
||||
import type { AnyParsedContent } from "@/shared/types";
|
||||
import { calcReadingTime } from "@/shared/metadata";
|
||||
|
||||
const props = defineProps<{
|
||||
post: StoryParsedContent | BlogParsedContent;
|
||||
post: AnyParsedContent;
|
||||
type: "stories" | "blog";
|
||||
highlighttags?: string[];
|
||||
}>();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { type StoryParsedContent } from "@/shared/types";
|
||||
import type { StoryParsedContent } from "@/shared/types";
|
||||
import { calcReadingTime } from "@/shared/metadata";
|
||||
|
||||
const docs = await queryContent<StoryParsedContent>("/stories")
|
||||
|
Reference in New Issue
Block a user