From 15eb7addd0ed1727f061013d4bc470b0317a93f4 Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 17 Jun 2024 09:43:26 +0200 Subject: [PATCH] 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. --- src/interfaces/api.interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/api.interface.ts b/src/interfaces/api.interface.ts index 591456c..d68876f 100644 --- a/src/interfaces/api.interface.ts +++ b/src/interfaces/api.interface.ts @@ -21,7 +21,7 @@ export interface IApiLoginReq { // ----- Response ----- export interface IAbstractApiResponse { - message?: Array; + message?: Array | string; error?: string; statusCode?: number; }