import { request } from './client';
import type { GenreRef } from './mangas';

export type Genre = GenreRef;

/** Returns the full curated genre vocabulary. The list is short, so no pagination. */
export async function listGenres(): Promise<Genre[]> {
    return request<Genre[]>('/v1/genres');
}
