UNPKG

insomnia-plugin-valorant

Version:
7 lines (6 loc) 328 B
/** * Caches the result of a function for a given amount of time * @param cacheTimeMS the amount of time to cache the result for in milliseconds * @param func the function to cache the result of */ export declare function cacheResult<T, U extends unknown[]>(cacheTimeMS: number, func: (...args: U) => T): (...args: U) => T;