feat: all project setup

This commit is contained in:
ivannoskov
2025-11-10 12:07:24 +03:00
parent fbfd7719bb
commit b0a9934220
99 changed files with 19597 additions and 0 deletions

21
lib/types/common.ts Normal file
View File

@@ -0,0 +1,21 @@
// ============================================================================
// Common Types
// ============================================================================
export type LoadingState = "idle" | "loading" | "success" | "error";
export interface AsyncState<T> {
data: T | null;
loading: boolean;
error: string | null;
}
export interface PaginationParams {
page?: number;
limit?: number;
}
export interface SortParams {
sort_by?: string;
order?: "asc" | "desc";
}