public/shared/types.d.ts

25 lines
479 B
TypeScript
Raw Normal View History

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;
readingTime: ReadingTime;
}
interface StoryParsedContent extends ParsedContent {
date: Date;
title: string;
tags: string[];
2022-08-10 13:14:48 -04:00
description?: string;
readingTime: ReadingTime;
}