MCPcopy Index your code
hub / github.com/tinyplex/tinybase / setDefinition

Function setDefinition

src/common/definable.ts:99–107  ·  view source on GitHub ↗
(id: Id, tableId: Id)

Source from the content-addressed store, hash-verified

97 });
98
99 const setDefinition = (id: Id, tableId: Id): void => {
100 mapSet(tableIds, id, tableId);
101 if (!collHas(things, id)) {
102 mapSet(things, id, getDefaultThing());
103 mapSet(allRowValues, id, mapNew());
104 mapSet(allSortKeys, id, mapNew());
105 callListeners(thingIdListeners);
106 }
107 };
108
109 const setDefinitionAndListen = (
110 id: Id,

Callers 2

setDefinitionAndListenFunction · 0.70
setQueryDefinitionFunction · 0.50

Calls 4

mapSetFunction · 0.90
collHasFunction · 0.90
mapNewFunction · 0.90
callListenersFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…