Files
gerbeur/shared/search.ts

21 lines
524 B
TypeScript

/**
* What a search answers.
*
* @module
*/
import type { PaginatedData } from "./api.ts";
import type { Dump } from "./dump.ts";
import type { Playlist } from "./playlist.ts";
import type { PublicUser } from "./user.ts";
/** `GET /api/search`: what matches the query, in each kind. */
export interface SearchResults {
/** A page of the matching dumps, with their total. */
dumps: PaginatedData<Dump>;
/** The matching users. */
users: PublicUser[];
/** The matching playlists. */
playlists: Playlist[];
}