test / frontend-project /userSlice.types.ts
Charvee's picture
Upload 10 files
e8eb17b verified
raw
history blame contribute delete
526 Bytes
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;
}