@jiminp/tooltool
    Preparing search index...

    Interface CachedFunction<ArgsType, ReturnType>

    A function wrapper returned by cached representing the wrapped function with caching capabilities.

    interface CachedFunction<ArgsType extends unknown[], ReturnType> {
        clearCache(): void;
        (...args: ArgsType): Promise<ReturnType>;
    }

    Type Parameters

    • ArgsType extends unknown[]
    • ReturnType
    Index

    Methods

    Methods

    • Clears the internal cache of the function.

      Returns void