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

Function toValuesSchema

src/schematizers/index.ts:69–77  ·  view source on GitHub ↗
(schemas: {[valueId: string]: any})

Source from the content-addressed store, hash-verified

67 };
68
69 const toValuesSchema = (schemas: {[valueId: string]: any}): ValuesSchema => {
70 const valuesSchema: ValuesSchema = objNew();
71 objForEach(schemas, (schema, valueId) =>
72 ifNotUndefined(toCellOrValueSchema(schema), (valueSchema) => {
73 valuesSchema[valueId] = valueSchema as ValueSchema;
74 }),
75 );
76 return valuesSchema;
77 };
78
79 return objFreeze({
80 toTablesSchema,

Callers

nothing calls this directly

Calls 3

objNewFunction · 0.90
objForEachFunction · 0.90
toCellOrValueSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…