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

Function valueInvalid

src/store/index.ts:1095–1105  ·  view source on GitHub ↗
(
    valueId?: Id,
    invalidValue?: any,
    defaultedValue?: Value,
  )

Source from the content-addressed store, hash-verified

1093 };
1094
1095 const valueInvalid = (
1096 valueId?: Id,
1097 invalidValue?: any,
1098 defaultedValue?: Value,
1099 ): ValueOrUndefined => {
1100 arrayPush(
1101 mapEnsure<Id | undefined, any[]>(invalidValues, valueId, () => []),
1102 invalidValue,
1103 );
1104 return defaultedValue;
1105 };
1106
1107 const getCellChange: GetCellChange = (tableId: Id, rowId: Id, cellId: Id) =>
1108 ifNotUndefined(

Callers 3

validateValuesFunction · 0.70
getValidatedValueFunction · 0.70
addDefaultsToValuesFunction · 0.70

Calls 2

arrayPushFunction · 0.90
mapEnsureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…