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

Function cellInvalid

src/store/index.ts:1069–1093  ·  view source on GitHub ↗
(
    tableId?: Id,
    rowId?: Id,
    cellId?: Id,
    invalidCell?: any,
    defaultedCell?: Cell,
  )

Source from the content-addressed store, hash-verified

1067 };
1068
1069 const cellInvalid = (
1070 tableId?: Id,
1071 rowId?: Id,
1072 cellId?: Id,
1073 invalidCell?: any,
1074 defaultedCell?: Cell,
1075 ): CellOrUndefined => {
1076 arrayPush(
1077 mapEnsure<Id | undefined, any[]>(
1078 mapEnsure<Id | undefined, IdMap<any[]>>(
1079 mapEnsure<Id | undefined, IdMap2<any[]>>(
1080 invalidCells,
1081 tableId,
1082 mapNew,
1083 ),
1084 rowId,
1085 mapNew,
1086 ),
1087 cellId,
1088 () => [],
1089 ),
1090 invalidCell,
1091 );
1092 return defaultedCell;
1093 };
1094
1095 const valueInvalid = (
1096 valueId?: Id,

Callers 4

validateTableFunction · 0.70
validateRowFunction · 0.70
getValidatedCellFunction · 0.70
addDefaultsToRowFunction · 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…