MCPcopy
hub / github.com/tinyplex/tinybase / addCallback

Function addCallback

src/middleware/index.ts:64–66  ·  view source on GitHub ↗
(callbacks: Callback[])

Source from the content-addressed store, hash-verified

62
63 const addCallback =
64 <Callback>(callbacks: Callback[]) =>
65 (callback: Callback): Middleware =>
66 fluent(() => arrayPush(callbacks, callback));
67
68 const willSetContentCallbacks: WillSetContentCallback[] = [];
69 const willSetTablesCallbacks: WillSetTablesCallback[] = [];

Callers

nothing calls this directly

Calls 2

arrayPushFunction · 0.90
fluentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…