public/shared/types.d.ts

24 lines
468 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[];
description?: Record<string, any>;
readingTime: ReadingTime;
}
interface StoryParsedContent extends ParsedContent {
date: Date;
title: string;
tags: string[];
readingTime: ReadingTime;
}