booru
Version:
Search (and do other things) on a bunch of different boorus!
42 lines • 950 B
TypeScript
/**
* @packageDocumentation
* @module Structures
*/
import type Booru from '../boorus/Booru';
/**
* A tag from a booru with a few common props
*
* @example
* ```
* Tag {
* name: 'tag_name',
* count: 1234,
* type: 0,
* ambiguous: false,
* }
* ```
*/
export default class Tag {
/** The {@link Booru} it came from */
booru: Booru;
/** The id of the tag */
id: number | string;
/** The name of the tag */
name: string;
/** The count of the tag */
count: number;
/** If the tag is a meta tag */
type: number;
/** If the tag is ambiguous */
ambiguous?: boolean | null;
/** All the data given by the booru @private */
protected data: any;
/**
* Create a new tag from the data given by the booru
*
* @param data The data from the booru
* @param booru The booru this tag is from
*/
constructor(data: any, booru: Booru);
}
//# sourceMappingURL=Tag.d.ts.map