@rr0/case
Version:
RR0 Case API
51 lines • 1.37 kB
TypeScript
export class RR0Catalog extends Fetcher {
/**
*
* @param {RR0CatalogOptions} [options] The URL to fetch the case and people directories from.
*/
constructor(options?: RR0CatalogOptions);
/**
* @protected
* @type {RR0CaseCatalog|undefined}
*/
protected cases: RR0CaseCatalog | undefined;
/**
* @protected
* @member {string[] | undefined}
*/
protected peopleFiles: any;
/**
* @protected
* @type {RR0CatalogOptions}
*/
protected options: RR0CatalogOptions;
/**
*
* @return {Promise<RR0CaseCatalog>}
*/
getCases(): Promise<RR0CaseCatalog>;
/**
*
* @param {string} [peopleDirsFile]
*/
getPeople(peopleDirsFile?: string): Promise<any>;
/**
* @protected
* @param {URL} url
* @param {string} suffix
* @template T
* @return {Promise<T[]>}
*/
protected fetchArray<T>(url: URL, suffix: string): Promise<T[]>;
/**
* Fetch a people JSON URL.
*
* @param {string} peopleUrl The URL of the JSON file to fetch.
* @return {Promise<T>}
*/
fetchPeople(peopleUrl: string): Promise<T>;
}
import { Fetcher } from "./Fetcher.js";
import { RR0CaseCatalog } from "./RR0CaseCatalog.js";
import type { RR0CatalogOptions } from "./RR0CatalogOptions.js";
//# sourceMappingURL=RR0Catalog.d.ts.map