refactor(shared): update utilities, API layer, and types

This commit is contained in:
Ilia Mashkov
2026-03-02 22:19:13 +03:00
parent ac73fd5044
commit 13818d5844
17 changed files with 554 additions and 96 deletions
+10
View File
@@ -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;
}