MCPcopy
hub / github.com/hello-pangea/dnd / Cache

Interface Cache

src/memoize-one.ts:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23// internal type
24interface Cache<TFunc extends (this: any, ...args: any[]) => any> {
25 lastThis: ThisParameterType<TFunc>;
26 lastArgs: Parameters<TFunc>;
27 lastResult: ReturnType<TFunc>;
28}
29
30export function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(
31 resultFn: TFunc,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…