(type: TypeParam)
| 58 | } |
| 59 | |
| 60 | function 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 | |
| 68 | function validateFunction(fn: Function, config: Config): ValidationError[] { |
| 69 | const schema = config.functions?.[fn.name]; |
no outgoing calls
no test coverage detected
searching dependent graphs…