insomnia-plugin-valorant
Version:
Adds template tags to Insomnia with Valorant data
7 lines (6 loc) • 328 B
TypeScript
/**
* 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;