UNPKG

typescript-cacheable

Version:

An in-memory caching (memoization) decorator for Typescript

9 lines (8 loc) 262 B
import { Scope } from './Scope'; export interface CacheableOptions { scope: Scope; ttl?: number; cacheUndefined: boolean; getStore?(): unknown; } export declare function optionsWithDefaults(options?: Partial<CacheableOptions>): CacheableOptions;