| 22 | |
| 23 | // internal type |
| 24 | interface Cache<TFunc extends (this: any, ...args: any[]) => any> { |
| 25 | lastThis: ThisParameterType<TFunc>; |
| 26 | lastArgs: Parameters<TFunc>; |
| 27 | lastResult: ReturnType<TFunc>; |
| 28 | } |
| 29 | |
| 30 | export function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>( |
| 31 | resultFn: TFunc, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…