Vereinheitlichen der API Parameter für Articles und Content Api Methoden. Interfaces etwas angepasst.

This commit is contained in:
2022-06-09 15:06:16 +02:00
parent 9cf3a814e3
commit ddd236af06
5 changed files with 10 additions and 17 deletions

9
types/global.d.ts vendored
View File

@@ -16,13 +16,7 @@ interface CollectionEntry {
}
interface ContentBlock {
layout: 1 | 2 | 3 | 4
title?: string
subtitle?: string
text?: string
button_text?: string
button_url?: string
images?: ImageEntry[]
article: any
}
interface Content {
@@ -30,6 +24,7 @@ interface Content {
locale: string
tags?: string[]
path: string
name: string
blocks: ContentBlock[]
}