| import { User } from './userSlice'; | |
| export interface UserApiResponse { | |
| success: boolean; | |
| data: User | User[]; | |
| message?: string; | |
| } | |
| export interface UserFormData { | |
| name: string; | |
| email: string; | |
| } | |
| export interface UserFilters { | |
| search?: string; | |
| role?: string; | |
| status?: 'active' | 'inactive'; | |
| } | |
| export type UserSortField = 'name' | 'email' | 'createdAt'; | |
| export type UserSortOrder = 'asc' | 'desc'; | |
| export interface UserSortOptions { | |
| field: UserSortField; | |
| order: UserSortOrder; | |
| } | |