Updateds types

This commit is contained in:
DrMint 2024-06-30 19:21:03 +02:00
parent 3ca42c5705
commit 54362bbef2
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ export type EndpointFolderPreview = {
}[]; }[];
}; };
export type EndpointFolder = EndpointFolderPreview & { export type EndpointFolder = Omit<EndpointFolderPreview, "translations"> & {
translations: (EndpointFolderPreview["translations"][number] & { translations: (EndpointFolderPreview["translations"][number] & {
description?: RichTextContent; description?: RichTextContent;
})[]; })[];
@ -173,7 +173,7 @@ export type EndpointPagePreview = {
updatedAt: string; updatedAt: string;
}; };
export type EndpointPage = EndpointPagePreview & { export type EndpointPage = Omit<EndpointPagePreview, "translations"> & {
backgroundImage?: EndpointPayloadImage; backgroundImage?: EndpointPayloadImage;
translations: (EndpointPagePreview["translations"][number] & { translations: (EndpointPagePreview["translations"][number] & {
sourceLanguage: string; sourceLanguage: string;
@ -206,7 +206,7 @@ export type EndpointCollectiblePreview = {
}; };
}; };
export type EndpointCollectible = EndpointCollectiblePreview & { export type EndpointCollectible = Omit<EndpointCollectiblePreview, "translations"> & {
translations: (EndpointCollectiblePreview["translations"][number] & { translations: (EndpointCollectiblePreview["translations"][number] & {
description?: RichTextContent; description?: RichTextContent;
})[]; })[];
@ -439,7 +439,7 @@ export type EndpointMediaPreview = {
}[]; }[];
}; };
export type EndpointMedia = EndpointMediaPreview & { export type EndpointMedia = Omit<EndpointMediaPreview, "translations"> & {
filesize: number; filesize: number;
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;