MCPcopy
hub / github.com/midudev/libros-programacion-gratis / FavoritesAPI

Interface FavoritesAPI

web/src/scripts/favorites.ts:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const STORAGE_KEY = 'librosgratis-favorites';
2
3export interface FavoritesAPI {
4 getFavorites: () => string[];
5 toggleFavorite: (bookId: string) => boolean;
6 isFavorite: (bookId: string) => boolean;
7}
8
9export function getFavorites(): string[] {
10 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected