(schemaErrorFormatter)
| 990 | } |
| 991 | |
| 992 | function validateSchemaErrorFormatter (schemaErrorFormatter) { |
| 993 | if (typeof schemaErrorFormatter !== 'function') { |
| 994 | throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN(typeof schemaErrorFormatter) |
| 995 | } else if (schemaErrorFormatter.constructor.name === 'AsyncFunction') { |
| 996 | throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN('AsyncFunction') |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | /** |
| 1001 | * These export configurations enable JS and TS developers |
no outgoing calls
no test coverage detected
searching dependent graphs…