/** * @packageDocumentation * @module Structures */ import type Booru from '../boorus/Booru'; import type Tag from './Tag'; import type TagListParameters from './TagListParameters'; /** * Represents a page of tag list results, works like an array of {@link Tag} *
Usable like an array and allows to easily get the next page
*
* @example
* ```
* const Booru = require('booru')
* // Safebooru
* const sb = new Booru('sb')
*
* const tags = await sb.tagList()
*
* // Log the tags from the first page, then from the second
* tags.forEach(t => console.log(t.name))
* const tags2 = await tags.nextPage()
* tags2.forEach(t => console.log(t.name))
* ```
*/
export default class TagListResults extends Array