normalize typing

This commit is contained in:
andrzej 2024-06-19 13:13:54 +02:00
parent 3a91fd7cb4
commit 52a30ec141
1 changed files with 3 additions and 1 deletions

View File

@ -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<Story & { genres: Array<Genre> }> = await getStoriesWithGenres()
export type StoryWithGenres = Story & { genres: Array<Genre> }
const stories: Array<StoryWithGenres> = await getStoriesWithGenres()
export default async function Page() {
return (
<div className="container mx-auto py-10">