base zone components and type refinements
This commit is contained in:
parent
9d96e3a6dc
commit
5c56af0dad
38 changed files with 323 additions and 54 deletions
13
types/collection/article.ts
Normal file
13
types/collection/article.ts
Normal 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;
|
||||
}
|
|
@ -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[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue