From 325d31c1f80f4c030ac4dcf72acc3927cc5f8384 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sun, 10 Nov 2024 08:21:52 +0200 Subject: [PATCH] Add Message interface and make ErrorMessage interface exportable --- src/lib/api.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 87ebd3e..413c990 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -73,10 +73,14 @@ interface UserData { name: string; } -interface ErrorMessage { +export interface ErrorMessage { message: string; } +export interface Message { + info: string; +} + // Generic function for making API requests export async function apiFetch( endpoint: string,