瀏覽代碼

feat: Added response object to shared

develop
Dale 3 月之前
父節點
當前提交
c2f78e7633
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      src/types/requests/interfaces.ts

+ 12
- 0
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…
取消
儲存