feat(interface): allow message to be string or array

This update to the api.interface now accepts both strings and arrays for the 'message' field inside the IAbstractApiResponse interface. This provides more flexibility for responses returned by the API.
This commit is contained in:
Mathis H (Avnyr) 2024-06-17 09:43:26 +02:00
parent 5a905d0608
commit 15eb7addd0
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -21,7 +21,7 @@ export interface IApiLoginReq {
// ----- Response -----
export interface IAbstractApiResponse {
message?: Array<string>;
message?: Array<string> | string;
error?: string;
statusCode?: number;
}