soundfont2
Version:
A SoundFont2 parser for Node.js and web browsers
10 lines (9 loc) • 353 B
TypeScript
/**
* Returns a memoized function for the original function. Function arguments are serialized as a
* JSON string and stored in an in-memory object.
*
* @template T
* @template U
* @param {(...originalArgs: T[]) => U} originalFunction
*/
export declare const memoize: <T, U>(originalFunction: (...originalArgs: T[]) => U) => (...args: T[]) => U;