This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Gensokyo.social
/
miracle-tv-shared
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
feat: Added response object to shared
develop
Dale
6 months ago
parent
72a7f7e3ba
commit
c2f78e7633
1 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
}
Write
Preview
Loading…
Cancel
Save