Add Message interface and make ErrorMessage interface exportable
This commit is contained in:
parent
b363fa25ac
commit
325d31c1f8
|
@ -73,10 +73,14 @@ interface UserData {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ErrorMessage {
|
export interface ErrorMessage {
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Message {
|
||||||
|
info: string;
|
||||||
|
}
|
||||||
|
|
||||||
// Generic function for making API requests
|
// Generic function for making API requests
|
||||||
export async function apiFetch<T>(
|
export async function apiFetch<T>(
|
||||||
endpoint: string,
|
endpoint: string,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user