@naturalcycles/js-lib
Version:
Standard library for universal (browser + Node.js) javascript
11 lines (10 loc) • 398 B
TypeScript
import type { AnyAsyncFunction } from '../types.js';
import type { AsyncMemoOptions } from './asyncMemo.decorator.js';
import type { AsyncMemoCache } from './memo.util.js';
export interface MemoizedAsyncFunction {
cache: AsyncMemoCache;
}
/**
* @experimental
*/
export declare function _memoFnAsync<FN extends AnyAsyncFunction>(fn: FN, opt: AsyncMemoOptions<FN>): FN & MemoizedAsyncFunction;