Skip to content

Commit

Permalink
docs: update scraper documentation regarding throwing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshRitesh12 committed Oct 4, 2024
1 parent abf34ae commit 6aa9c5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/hianime/hianime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type { SearchFilters } from "./types/animeSearch.js";
class Scraper {
/**
* @param {string} animeId - unique anime id
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -39,6 +40,7 @@ class Scraper {
/**
* @param {string} category - anime category
* @param {number} page - page number, defaults to `1`
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -55,6 +57,7 @@ class Scraper {

/**
* @param {string} animeId - unique anime id
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -71,6 +74,7 @@ class Scraper {

/**
* @param {string} episodeId - unique episode id
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -92,6 +96,7 @@ class Scraper {
/**
* @param {string} genreName - anime genre name
* @param {number} page - page number, defaults to `1`
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -109,6 +114,7 @@ class Scraper {
/**
* @param {string} producerName - anime producer name
* @param {number} page - page number, defaults to `1`
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -127,6 +133,7 @@ class Scraper {
* @param {string} q - search query
* @param {number} page - page number, defaults to `1`
* @param {SearchFilters} filters - optional advance search filters
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -150,6 +157,7 @@ class Scraper {

/**
* @param {string} q - search query
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -166,6 +174,7 @@ class Scraper {

/**
* @param {string} animeEpisodeId - unique anime episode id
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -182,6 +191,7 @@ class Scraper {

/**
* @param {string} date - date in `YYYY-MM-DD` format
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand All @@ -197,6 +207,7 @@ class Scraper {
}

/**
* @throws {AniwatchError}
* @example
* import { HiAnime } from "aniwatch";
*
Expand Down

0 comments on commit 6aa9c5b

Please sign in to comment.