big style update

This commit is contained in:
Daniel Ledda
2025-12-20 21:16:00 +01:00
parent 51e44db779
commit 498cb37561
17 changed files with 562 additions and 322 deletions

View File

@@ -1,4 +1,15 @@
export type DjAPIEndpoint = "/rp-articles";
export type DjAPIEndpoint =
| "/rp-articles"
| "/blog-entries"
;
type BlogEntry = {
title: string,
slug: string;
createdAt: string,
updatedAt: string,
tags?: string[],
};
type RPArticle = {
title: string,
@@ -11,6 +22,7 @@ type RPArticle = {
export interface DjAPIResultMap extends Record<DjAPIEndpoint, unknown> {
"/rp-articles": RPArticle[];
"/blog-entries": BlogEntry[];
}
export type DjAPIResult = DjAPIResultMap[DjAPIEndpoint];