Add Message interface and make ErrorMessage interface exportable

This commit is contained in:
qowevisa 2024-11-10 08:21:52 +02:00
parent b363fa25ac
commit 325d31c1f8

View File

@ -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<T>(
endpoint: string,