base zone components and type refinements

This commit is contained in:
Julian Krauser 2024-11-02 12:47:07 +01:00
parent 9d96e3a6dc
commit 5c56af0dad
38 changed files with 323 additions and 54 deletions

View file

@ -0,0 +1,13 @@
export default interface Article {
id: number;
documentId: string;
title: string;
description: string;
slug: string;
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
date: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
}

View file

@ -1,3 +1,6 @@
import type { ComponentTypes } from "../component/baseComponent";
import type SharedHero from "../component/sharedHero";
export default interface Page {
id: number;
documentId: string;
@ -7,7 +10,7 @@ export default interface Page {
publishedAt: string;
locale: string;
slug: string;
Hero: { id: number; titel: string };
content: { __component: string; id: number; list: string; enable_detail: boolean }[];
hero: SharedHero;
content: Array<ComponentTypes>;
localizations: any[];
}