fix(SW-190): added imageVaultAsset schema
This commit is contained in:
@@ -2,12 +2,12 @@ import { z } from "zod"
|
||||
|
||||
import { validateContentPageSchema } from "@/server/routers/contentstack/contentPage/output"
|
||||
|
||||
import { ImageVaultAsset } from "@/types/components/imageVaultImage"
|
||||
import { ImageVaultAsset } from "@/types/components/imageVault"
|
||||
|
||||
export type ContentPageDataRaw = z.infer<typeof validateContentPageSchema>
|
||||
|
||||
type ContentPageRaw = ContentPageDataRaw["content_page"]
|
||||
|
||||
export type ContentPage = Omit<ContentPageRaw, "hero_image"> & {
|
||||
hero_image?: ImageVaultAsset
|
||||
heroImage?: ImageVaultAsset
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user