typerinth
Version:
A TypeScript library for interacting with the Modrinth API.
21 lines (20 loc) • 701 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultSearchOptions = getDefaultSearchOptions;
const SearchIndex_1 = require("../../../enums/SearchIndex");
const SearchFacets_1 = __importDefault(require("../../../util/facets/SearchFacets"));
/**
* Gets the default search options.
* @returns The default search options.
*/
function getDefaultSearchOptions() {
return {
facets: new SearchFacets_1.default(),
index: SearchIndex_1.SearchIndex.Relevance,
offset: 0,
limit: 10,
};
}