@jiminp/tooltool
    Preparing search index...

    Interface CachedFunction<ArgsType, ReturnType>

    An async function with a clearable promise cache, returned by cached.

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

    Type Parameters

    • ArgsType extends unknown[]

      Tuple of the wrapped function's parameter types.

    • ReturnType

      The resolved type of the wrapped function.

    Index
    • Clears cached entries without cancelling in-flight calls.

      Returns void