UNPKG

@podium/client

Version:

Client for fetching podium component fragments over HTTP.

32 lines (31 loc) 1.18 kB
/** * @typedef {object} PodletClientCacheResolverOptions * @property {import('abslog').AbstractLoggerOptions} [logger] */ export default class PodletClientCacheResolver { /** * @constructor * @param {import('ttl-mem-cache').default} registry * @param {PodletClientCacheResolverOptions} options */ constructor(registry: any, options?: PodletClientCacheResolverOptions); /** * Loads the podlet's manifest from cache if not stale * * @param {import('./http-outgoing.js').default} outgoing * @returns {Promise<import('./http-outgoing.js').default>} */ load(outgoing: import("./http-outgoing.js").default): Promise<import("./http-outgoing.js").default>; /** * Saves the podlet's manifest to the cache * * @param {import('./http-outgoing.js').default} outgoing * @returns {Promise<import('./http-outgoing.js').default>} */ save(outgoing: import("./http-outgoing.js").default): Promise<import("./http-outgoing.js").default>; get [Symbol.toStringTag](): string; #private; } export type PodletClientCacheResolverOptions = { logger?: import("abslog").AbstractLoggerOptions; };