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:
parent
5a905d0608
commit
15eb7addd0
@ -21,7 +21,7 @@ export interface IApiLoginReq {
|
||||
// ----- Response -----
|
||||
|
||||
export interface IAbstractApiResponse {
|
||||
message?: Array<string>;
|
||||
message?: Array<string> | string;
|
||||
error?: string;
|
||||
statusCode?: number;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user