Updateds types
This commit is contained in:
parent
3ca42c5705
commit
54362bbef2
|
@ -20,7 +20,7 @@ export type EndpointFolderPreview = {
|
|||
}[];
|
||||
};
|
||||
|
||||
export type EndpointFolder = EndpointFolderPreview & {
|
||||
export type EndpointFolder = Omit<EndpointFolderPreview, "translations"> & {
|
||||
translations: (EndpointFolderPreview["translations"][number] & {
|
||||
description?: RichTextContent;
|
||||
})[];
|
||||
|
@ -173,7 +173,7 @@ export type EndpointPagePreview = {
|
|||
updatedAt: string;
|
||||
};
|
||||
|
||||
export type EndpointPage = EndpointPagePreview & {
|
||||
export type EndpointPage = Omit<EndpointPagePreview, "translations"> & {
|
||||
backgroundImage?: EndpointPayloadImage;
|
||||
translations: (EndpointPagePreview["translations"][number] & {
|
||||
sourceLanguage: string;
|
||||
|
@ -206,7 +206,7 @@ export type EndpointCollectiblePreview = {
|
|||
};
|
||||
};
|
||||
|
||||
export type EndpointCollectible = EndpointCollectiblePreview & {
|
||||
export type EndpointCollectible = Omit<EndpointCollectiblePreview, "translations"> & {
|
||||
translations: (EndpointCollectiblePreview["translations"][number] & {
|
||||
description?: RichTextContent;
|
||||
})[];
|
||||
|
@ -439,7 +439,7 @@ export type EndpointMediaPreview = {
|
|||
}[];
|
||||
};
|
||||
|
||||
export type EndpointMedia = EndpointMediaPreview & {
|
||||
export type EndpointMedia = Omit<EndpointMediaPreview, "translations"> & {
|
||||
filesize: number;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
|
|
Loading…
Reference in New Issue