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

Function getProperties

src/schematizers/schematizer-effect/index.ts:75–87  ·  view source on GitHub ↗
(schema: any)

Source from the content-addressed store, hash-verified

73};
74
75const getProperties = (schema: any) => {
76 const ast = schema.ast;
77 if (ast._tag === TYPE_LITERAL) {
78 const signatures = ast[PROPERTY_SIGNATURES];
79 if (signatures) {
80 const properties: any = {};
81 signatures.forEach((sig: any) => {
82 properties[sig.name] = sig.type;
83 });
84 return properties;
85 }
86 }
87};
88
89export const createEffectSchematizer: typeof createEffectSchematizerDecl = () =>
90 createCustomSchematizer(unwrapSchema, getProperties);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…