Browse Source

feat: Added response object to shared

develop
Dale 1 year ago
parent
commit
c2f78e7633
  1. 12
      src/types/requests/interfaces.ts

12
src/types/requests/interfaces.ts

@ -0,0 +1,12 @@
export interface ErrorsObject {
[key: string]: string;
}
export interface ResponseObject<TData = any> {
status: string;
body: TData;
errors?: ErrorsObject;
errorMessages?: ErrorsObject;
schema: any;
message?: string;
}
Loading…
Cancel
Save