news.ts 515 B

1234567891011121314151617181920212223242526
  1. export interface NewsItem {
  2. id: string;
  3. title: string;
  4. description: string;
  5. content: string;
  6. source: string;
  7. category: 'rss' | 'youtube' | 'steam' | 'actualites';
  8. publishedAt: string;
  9. readTime: number;
  10. isPinned: boolean;
  11. isRead: boolean;
  12. url?: string;
  13. imageUrl?: string;
  14. feedId?: string;
  15. isDiscovery?: boolean;
  16. lastSeenAt?: string;
  17. }
  18. export interface NewsCategory {
  19. id: string;
  20. name: string;
  21. type: 'rss' | 'youtube' | 'steam' | 'actualites';
  22. color: string;
  23. icon: string;
  24. }