fix(SW-190): moved types from output to own file inside /types

This commit is contained in:
Erik Tiekstra
2024-08-15 12:32:56 +02:00
parent b073b0ae73
commit 33460d8e87
3 changed files with 18 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
import { z } from "zod"
import { validateContentPageSchema } from "@/server/routers/contentstack/contentPage/output"
import { ImageVaultAsset } from "@/types/components/imageVaultImage"
export type ContentPageDataRaw = z.infer<typeof validateContentPageSchema>
type ContentPageRaw = ContentPageDataRaw["content_page"]
export type ContentPage = Omit<ContentPageRaw, "hero_image"> & {
hero_image?: ImageVaultAsset
}