Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. export const clubStateName = 'club-module';
  2.  
  3. export const enum SortOrder {
  4. ASCENDING = 'ASC',
  5. DESCENDING = 'DESC'
  6. }
  7.  
  8. export interface ClubsState {
  9. id: number;
  10. name: string;
  11. short_name: string;
  12. club_code: string;
  13. stadium: string;
  14. capacity: number;
  15. manager: string;
  16. }
  17.  
  18. export interface SortState {
  19. field: string;
  20. order: string;
  21. }
  22.  
  23. export interface ClubModuleState {
  24. clubs: ClubsState[];
  25. sort: SortState;
  26. }
  27.  
  28. export const initialClubModuleState = {
  29. clubs: null,
  30. sort: {
  31. field: 'name',
  32. order: SortOrder.ASCENDING
  33. }
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement