File size: 526 Bytes
e8eb17b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}