Type alias Fetcher<K, V, FC>

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

Type Parameters

  • K

  • V

  • FC = unknown

Type declaration

    • (key, staleValue, options): Promise<V | undefined | void> | V | undefined | void
    • The type signature for the OptionsBase.fetchMethod option.

      Parameters

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

Generated using TypeDoc