4 lines
135 B
TypeScript
4 lines
135 B
TypeScript
export default function memoize<ArgType = any, ReturnType = any>(
|
|
fn: (arg: ArgType) => ReturnType,
|
|
): (arg: ArgType) => ReturnType;
|