lru-cache
    Preparing search index...

    Type Alias Fetcher<K, V, FC>

    Fetcher: (
        key: K,
        staleValue: V | undefined,
        options: FetcherOptions<K, V, FC>,
    ) => Promise<V | undefined | void> | V | undefined | void

    The type signature for the OptionsBase.fetchMethod option.

    Type Parameters

    • K
    • V
    • FC = unknown

    Type declaration

      • (
            key: K,
            staleValue: V | undefined,
            options: FetcherOptions<K, V, FC>,
        ): Promise<V | undefined | void> | V | undefined | void
      • Parameters

        Returns Promise<V | undefined | void> | V | undefined | void