typerinth
Version:
A TypeScript library for interacting with the Modrinth API.
27 lines (26 loc) • 751 B
TypeScript
import Facet from "./Facet";
export default class FacetGroup {
private facets;
/**
* Creates a new FacetGroup with the given facets.
* Facets in a group are combined with an **OR** operation
* @param facets The facets to create the group with
*/
constructor(...facets: Facet[]);
/**
* Gets the facets
* @returns The facets
*/
getFacets(): Facet[];
/**
* Adds a facet to the group
* @param facet The facet to add
* @returns The facet group
*/
addFacet(facet: Facet): FacetGroup;
/**
* Stringifies the facet group
* @returns The stringified facet group (e.g. ["categories:forge"] or ["version:1.16.5", "version:1.17.1"])
*/
stringify(): string;
}