(options?: ErrorOptions)
| 10767 | * @since 4.0.0 |
| 10768 | */ |
| 10769 | export function Defect(options?: ErrorOptions): Defect { |
| 10770 | const key = getErrorOptionsKey(options) |
| 10771 | const cached = defectSchemaCache[key] |
| 10772 | if (cached !== undefined) { |
| 10773 | return cached |
| 10774 | } |
| 10775 | const schema = Json.pipe(decodeTo(Unknown, SchemaTransformation.defectFromJson(getErrorOptions(key)))) |
| 10776 | defectSchemaCache[key] = schema |
| 10777 | return schema |
| 10778 | } |
| 10779 | |
| 10780 | /** |
| 10781 | * Type-level representation returned by {@link Exit}. |
nothing calls this directly
no test coverage detected