paheal
Version:
Simple and user-friendly Wrapper of Rule 34 Paheal
33 lines (29 loc) • 1.12 kB
TypeScript
export = paheal;
declare class paheal {
/**
* @param {String} text Tags for put the input of search results
*
* **Details of return:**
* * Class with methods for Continue Searching
* * Objects in array with Doujins
* @returns Class with Methods and Results
*/
search(text: String): Promise<searchResult> | Promise<{author: String, tags: String[], src: String, href: String}>
/**
* Give your specific media from current identificator
*
* @param {String | Number} id identificator of specific post
* @returns Object with information of media
*/
getMedia(id: String | Number): Promise<{author: String, tags: String[], src: String, href: String}>
/**
* @param {String} text Tags for put the input of search results
*
* **Details of return:**
* * Class with methods for Continue Searching
* * Objects in array with Doujins
* @returns Class with Methods and Results
*/
byAuthor(name: String): Promise<searchResult>
}
import searchResult from "./searchService"