import type { SimpleCache } from '../../domain.objects/SimpleCache'; /** * a method which specifies how to extract a simple-cache from input args * * usage: * - cache: (_input, context) => context.cache * - cache: (input) => input.options.cache * * note * - C generic captures the actual cache type (e.g., WithCacheUri) * - no default value to enable better type inference * - inline functions preserve return type for meta: 'include' */ export type SimpleCacheExtractionMethod
  • > = (...args: LI) => C; /** * how the cache can be specified for use with simple cache * - either directly as a cache instance * - or through an extraction method that grabs the cache from input args * * note * - C generic captures the actual cache type (e.g., WithCacheUri) * - inline extraction functions work with meta: 'include' */ export type WithSimpleCacheChoice
  • > = C | SimpleCacheExtractionMethod; /** * how to extract the with simple cache choice */ export declare const getCacheFromCacheChoice:
  • >({ forInput, cacheOption, }: { forInput: LI; cacheOption: WithSimpleCacheChoice; }) => C;