@rr0/cms
Version:
RR0 Content Management System (CMS)
14 lines (13 loc) • 699 B
TypeScript
import { HttpSource } from "../time/datasource/HttpSource.js";
import { SourceRegistry } from "./SourceRegistry.js";
import { AllDataService, RR0SourceType, Source } from "@rr0/data";
import { TimeService } from "../time/TimeService.js";
/**
* Create Source objects and register them.
*/
export declare class PersistentSourceRegistry extends SourceRegistry {
protected fileName: string;
constructor(dataService: AllDataService, http: HttpSource, baseUrl: string, fileName: string, options: Intl.DateTimeFormatOptions, time: TimeService);
protected get(href: string): Promise<Source<RR0SourceType>>;
protected register(href: string, source: Source<RR0SourceType>): Promise<void>;
}