-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
63 lines (63 loc) · 1.71 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* An anime quote Object.
*/
export type AnimeQuotesObject = {
/**
* Quote.
*/
quote: string;
/**
* Anime name.
*/
anime: string;
/**
* Quote ID.
*/
id: number;
/**
* Character name.
*/
name: string;
/**
* Object status.
*/
success: boolean;
};
/**
* Get a random quote.
* @returns {AnimeQuotesObject}
*/
export function randomQuote(): AnimeQuotesObject;
/**
* Get Quote by ID.
* @param {number} id
*/
export function getQuote(id: number): AnimeQuotesObject;
/**
* Get quotes by Anime.
* @param {string} anime Anime name.
* @param {boolean} [substringSearch=false] Partial matching for output.
* @returns {AnimeQuotesObject[]}
*/
export function getQuotesByAnime(anime: string, substringSearch?: boolean): AnimeQuotesObject[];
/**
* Get quotes by Character.
* @param {string} character Anime character's name.
* @param {boolean} [substringSearch=false] Partial matching for output.
* @returns {AnimeQuotesObject[]}
*/
export function getQuotesByCharacter(character: string, substringSearch?: boolean): AnimeQuotesObject[];
/**
* Get a random quote from the input anime.
* @param {string} anime Anime name.
* @param {boolean} [substringSearch=false] Partial matching for output.
* @returns {AnimeQuotesObject}
*/
export function getRandomQuoteByAnime(anime: string, substringSearch?: boolean): AnimeQuotesObject;
/**
* Get a random quote from the input character.
* @param {string} character Anime character's name.
* @param {boolean} [substringSearch=false] Partial matching for output.
* @returns {AnimeQuotesObject}
*/
export function getRandomQuoteByCharacter(character: string, substringSearch?: boolean): AnimeQuotesObject;