From 52a30ec1412fb12ad9d09db018a7bff97185b2f7 Mon Sep 17 00:00:00 2001 From: andrzej Date: Wed, 19 Jun 2024 13:13:54 +0200 Subject: [PATCH] normalize typing --- src/app/story/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/story/page.tsx b/src/app/story/page.tsx index 93c0a71..0fea743 100644 --- a/src/app/story/page.tsx +++ b/src/app/story/page.tsx @@ -3,7 +3,9 @@ import { DataTable } from "./data-table"; import { columns } from "./columns"; import { getStoriesWithGenres } from "app/lib/get"; import { Genre } from "@prisma/client"; -const stories: Array }> = await getStoriesWithGenres() +export type StoryWithGenres = Story & { genres: Array } + +const stories: Array = await getStoriesWithGenres() export default async function Page() { return (