@karmaniverous/jeeves
    Preparing search index...

    Interface AsyncContentCacheOptions

    interface AsyncContentCacheOptions {
        fetch: () => Promise<string>;
        onError?: (error: unknown) => void;
        placeholder?: string;
    }
    Index

    Properties

    fetch: () => Promise<string>

    Async function that fetches fresh content. Errors are caught and logged; the previous value is retained.

    onError?: (error: unknown) => void

    Optional error handler. Called when fetch throws. Defaults to console.warn.

    placeholder?: string

    Content returned before the first successful fetch.

    '> Initializing...'