Interface: SearchResult
Defined in: src/nakanimendo/nakanime.ts:33
The SearchResult
interface represents the structure of a search result returned by the Mika Scraper. It provides detailed information about a specific anime.
Properties
data
data:
AnimeData
[]
Defined in: src/nakanimendo/nakanime.ts:34
An array of AnimeData
objects, each representing a unique anime entry resulting from a search query. This property contains all relevant details about the anime, such as title, description, rating, and more.
Usage
The SearchResult
interface is primarily used when handling responses from search operations within the Mika Scraper module. Developers can utilize the data
property to access the specifics of each anime found during a search.
Example
import { SearchResult } from 'mika-scraper';
function handleSearchResult(result: SearchResult): void {
result.data.forEach(anime => {
console.log(`Title: ${anime.title}, Rating: ${anime.rating}`);
});
}
Last updated on