chore: upgrade to nuxt 4
This commit is contained in:
28
app/shared/types.d.ts
vendored
Normal file
28
app/shared/types.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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?: string;
|
||||
readingTime: ReadingTime;
|
||||
nopreview?: boolean;
|
||||
}
|
||||
|
||||
interface StoryParsedContent extends ParsedContent {
|
||||
date: Date;
|
||||
title: string;
|
||||
tags: string[];
|
||||
description?: string;
|
||||
readingTime: ReadingTime;
|
||||
nopreview?: boolean;
|
||||
}
|
||||
|
||||
type AnyParsedContent = BlogParsedContent | StoryParsedContent;
|
Reference in New Issue
Block a user