refactor(shared): update utilities, API layer, and types
This commit is contained in:
1 parent
ac73fd5044
commit
13818d5844
17 files changed
+554
-96
No files matched your search
@@ -1,4 +1,14 @@
|
||||
/**
|
||||
* Standard API response wrapper
|
||||
*
|
||||
* Encapsulates response data with HTTP status code
|
||||
* for consistent error handling across API calls.
|
||||
*
|
||||
* @template T - Type of the response data
|
||||
*/
|
||||
export interface ApiResponse<T> {
|
||||
/** Response payload data */
|
||||
data: T;
|
||||
/** HTTP status code */
|
||||
status: number;
|
||||
}
|
||||
Reference in new issue
Block a user