interface.ts 717 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import STYLE_CONFIG from '@/config/style';
  2. export interface ResDataType {
  3. code: number;
  4. data: any;
  5. }
  6. export interface MenuRoute {
  7. path: string;
  8. title?: string;
  9. icon?:
  10. | string
  11. | {
  12. render: () => void;
  13. };
  14. redirect?: string;
  15. children: MenuRoute[];
  16. meta: any;
  17. }
  18. export type ModeType = 'dark' | 'light';
  19. export type SettingType = typeof STYLE_CONFIG;
  20. export type ClassName = { [className: string]: any } | ClassName[] | string;
  21. export type CommonObjType = {
  22. [key: string]: string | number;
  23. };
  24. export interface NotificationItem {
  25. id: string;
  26. content: string;
  27. type: string;
  28. status: boolean;
  29. collected: boolean;
  30. date: string;
  31. quality: 'high' | 'low' | 'middle';
  32. }