UNPKG

@rr0/case

Version:
48 lines 1.25 kB
/** * @typedef {Record<string, any>} RR0CaseCatalogOptions * @property {string|URL} baseUrl * @property {string} filePath * @property {string} dirsFile */ /** * Case catalog */ export class RR0CaseCatalog extends Fetcher { /** * @readonly * @type {RR0CaseCatalogOptions} */ static readonly OPTIONS_DEFAULT: RR0CaseCatalogOptions; /** * @param {RR0CaseCatalogOptions} options * @param {string[]} files */ constructor(options: RR0CaseCatalogOptions, files: string[]); /** * @readonly * @type {string[]} */ readonly files: string[]; /** * @readonly * @type {RR0CaseCatalogOptions} */ readonly options: RR0CaseCatalogOptions; /** * Fetch a case JSON URL. * * @param {string} caseUrl The URL of the JSON file to fetch. * @param {string} [lang] * @return {Promise<RR0Case>} */ fetch(caseUrl: string, lang?: string): Promise<RR0Case>; /** * @protected * @param {string} caseUrl * @return {string} */ protected titleFromUrl(caseUrl: string): string; } export type RR0CaseCatalogOptions = Record<string, any>; import { Fetcher } from "./Fetcher.js"; //# sourceMappingURL=RR0CaseCatalog.d.ts.map