2022-08-08 17:49:35 -04:00
|
|
|
import type { ParsedContent } from "@nuxt/content/dist/runtime/types";
|
|
|
|
|
|
|
|
interface ReadingTime {
|
|
|
|
text: string;
|
|
|
|
minutes: number;
|
|
|
|
time: number;
|
|
|
|
words: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface BlogParsedContent extends ParsedContent {
|
|
|
|
date: Date;
|
|
|
|
title: string;
|
|
|
|
tags: string[];
|
2022-08-10 13:14:48 -04:00
|
|
|
description?: string;
|
2022-08-08 17:49:35 -04:00
|
|
|
readingTime: ReadingTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface StoryParsedContent extends ParsedContent {
|
|
|
|
date: Date;
|
|
|
|
title: string;
|
|
|
|
tags: string[];
|
2022-08-10 13:14:48 -04:00
|
|
|
description?: string;
|
2022-08-08 17:49:35 -04:00
|
|
|
readingTime: ReadingTime;
|
|
|
|
}
|