MCPcopy Index your code
hub / github.com/markdoc/markdoc / typeToString

Function typeToString

src/validator.ts:60–66  ·  view source on GitHub ↗
(type: TypeParam)

Source from the content-addressed store, hash-verified

58}
59
60function typeToString(type: TypeParam): string {
61 if (typeof type === 'string') return type;
62
63 if (Array.isArray(type)) return type.map(typeToString).join(' | ');
64
65 return type.name;
66}
67
68function validateFunction(fn: Function, config: Config): ValidationError[] {
69 const schema = config.functions?.[fn.name];

Callers 2

validateFunctionFunction · 0.85
validatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…