(value: any)
| 31 | * used for error messages. |
| 32 | */ |
| 33 | export function stringifyForError(value: any): string { |
| 34 | if (typeof value === 'function') return value.name || value.toString(); |
| 35 | if (typeof value === 'object' && value != null && typeof value.type === 'function') { |
| 36 | return value.type.name || value.type.toString(); |
| 37 | } |
| 38 | |
| 39 | return renderStringify(value); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Used to stringify a `Type` and including the file path and line number in which it is defined, if |
no test coverage detected
searching dependent graphs…