Hex Core JS
    Preparing search index...

    Type Alias MemoizeOptions<A>

    type MemoizeOptions<A extends any[]> = {
        createKey?: (fnThis: any, ...args: A) => string;
        maxSize?: number;
        type?: "function" | "method";
    }

    Type Parameters

    • A extends any[]
    Index

    Properties

    createKey?: (fnThis: any, ...args: A) => string

    A function to create a key for the cache. This is used to store the result of the function in the cache.

    maxSize?: number

    The maximum number of entries to store in the cache.

    type?: "function" | "method"

    The type of the function to memoize. This sets a suitable default value for the createKey function.