MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getThing

Function getThing

src/common/definable.ts:80–80  ·  view source on GitHub ↗
(id: Id)

Source from the content-addressed store, hash-verified

78 const getTableId = (id: Id): Id => mapGet(tableIds, id) as Id;
79
80 const getThing = (id: Id): Thing | undefined => mapGet(things, id);
81
82 const setThing = (id: Id, thing: Thing | undefined): IdMap<Thing> =>
83 mapSet(things, id, thing) as IdMap<Thing>;

Callers 1

addListenerFunction · 0.70

Calls 1

mapGetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…