This commit is contained in:
Daniel Ledda
2024-11-01 21:29:13 +01:00
parent 64640300dd
commit 20479958bd
17 changed files with 224 additions and 96 deletions

View File

@@ -1,7 +1,7 @@
export type DJAPIEndpoint = "/rp-articles";
export interface DJAPIResultMap extends Record<DJAPIEndpoint, unknown> {
"/rp-articles": { slug: string; name: string }[];
"/rp-articles": { slug: string; title: string, tags?: string[] }[];
}
export type DJAPIResult = DJAPIResultMap[DJAPIEndpoint];