my-notes-viewer/types/global.d.ts

60 lines
1007 B
TypeScript
Raw Normal View History

2021-03-22 15:59:05 +01:00
interface ContentBlock {
layout: 1 | 2 | 3 | 4
title?: string
subtitle?: string
text?: string
button_text?: string
button_url?: string
images?: ImageEntry[]
}
interface Content {
id: string
path: string
blocks: ContentBlock[]
}
interface GeneralInformation {
id: string
active: boolean
firstname: string
lastname: string
street: string
postcode: number
city: string
tel: string
mobile: string
email: string
images: GeneralImage[]
insertTime: string
updateTime: string
lastPageUpdate: string
}
interface GeneralImage {
file: File[]
id: string
label: string
}
interface TibiArticle {
id: string
active: boolean
content: string
details: string
image: File
insertTime: string
position: string
subtitle: string
title: string
updateTime: string
}
interface File {
lastModified?: number
path: string
size?: string
src: string
type: string
}