/ types / api.ts
api.ts
 1  // Contains API response and request types
 2  
 3  export interface MangaMappingData {
 4    internalId: string;
 5    anilistId: number;
 6    title: string;
 7    lastUpdated: number;
 8  }
 9  
10  export interface LastReadChapters {
11    [key: string]: string | null;
12  }
13  
14  export interface ServiceResponse<T> {
15    success: boolean;
16    message: string;
17    data?: T;
18  }
19  
20  export interface CacheInfo {
21    size: number;
22    count: number;
23  }