Browse Source

feat: Added response object to shared

develop
Dale 2 months ago
parent
commit
c2f78e7633
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      src/types/requests/interfaces.ts

+ 12
- 0
src/types/requests/interfaces.ts View File

@@ -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