chore: upgrade to nuxt 4

This commit is contained in:
eggy
2025-10-19 15:33:02 +08:00
parent 21c717ed79
commit 4c1c8ae3af
8 changed files with 419 additions and 0 deletions

28
app/shared/types.d.ts vendored Normal file
View 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;