/ lionsmane-fe / src / types / feed.d.ts
feed.d.ts
 1  import { feedSchema } from 'lionsmane-common';
 2  import { z } from 'zod';
 3  
 4  const subscriptionSchema = feedSchema
 5    .extend({
 6      description: z.string().min(1).max(255).optional(),
 7    })
 8    .omit({
 9      minifluxId: true,
10    });
11  
12  export type Feed = z.infer<typeof subscriptionSchema>;
13  
14  export interface FeedTreeData {
15    id: string;
16    name: string;
17    unreadCount: number | null;
18    favicon: string | null;
19    folderId: string | null;
20    type: 'feed' | 'folder';
21    children?: Array<FeedTreeData>;
22  }