Files
Goldebek/src/types.ts
T
Per Hoener 0d45331f5c
Deploy / validate-dispatch (push) Successful in 43s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 13s
Deploy / secret-scan (push) Successful in 9s
Deploy / app-quality (push) Successful in 11m21s
Deploy / security-deps (push) Successful in 14s
Deploy / context (push) Failing after 1s
Deploy / app-image (push) Skipped
Deploy / deploy-dev (push) Skipped
Deploy / deploy-master (push) Skipped
Initial commit
2026-09-18 23:37:19 +02:00

67 lines
2.1 KiB
TypeScript

/**
* @fileoverview Zentrale TypeScript-Definitionen der Website
*
* Diese Datei enthält die zentralen TypeScript-Schnittstellen für alle Datenstrukturen
* der Anwendung, einschließlich Beiträge, Kalenderereignisse und Downloads.
*/
/**
* Metadaten eines Beitrags
* @interface PostMetadata
* @property {string} id - Eindeutige ID des Beitrags
* @property {string} title - Titel des Beitrags
* @property {string} author - Name des Autors
* @property {Date} createdAt - Erstellungsdatum
* @property {Date} updatedAt - Letztes Änderungsdatum
* @property {boolean} published - Gibt an, ob der Beitrag veröffentlicht ist
* @property {string} [excerpt] - Kurzbeschreibung des Beitrags
* @property {string} [plainText] - Reiner Textinhalt (ohne Markdown)
*/
export interface PostMetadata {
id: string;
title: string;
author: string;
createdAt: Date;
updatedAt: Date;
published: boolean;
excerpt?: string;
plainText?: string;
}
/**
* Ein Kalenderereignis
* @interface CalendarEvent
* @property {string} id - Eindeutige ID des Ereignisses
* @property {string} title - Titel des Ereignisses
* @property {string|null} description - Detailierte Beschreibung des Ereignisses
* @property {string|null} location - Ort des Ereignisses
* @property {string} start - Startzeitpunkt (ISO-Format)
* @property {string} end - Endzeitpunkt (ISO-Format)
* @property {boolean} allDay - Gibt an, ob das Ereignis den ganzen Tag dauert
* @property {string} timeZone - Zeitzone des Ereignisses (z.B. "Europe/Berlin")
*/
export interface CalendarEvent {
id: string;
title: string;
description: string | null;
location: string | null;
start: string;
end: string;
allDay: boolean;
timeZone: string;
special: boolean;
}
/**
* Ein Download-Objekt für Dokumente und Dateien
* @interface Download
* @property {string} name - Dateiname
* @property {string} description - Kurzbeschreibung der Datei
* @property {string} download_url - URL zum Herunterladen der Datei
*/
export interface Download {
name: string;
description: string;
download_url: string;
}