normalize typing
This commit is contained in:
parent
3a91fd7cb4
commit
52a30ec141
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue