(schema: S)
| 8660 | return cached |
| 8661 | } |
| 8662 | const normalizedOptions = getErrorOptions(key) |
| 8663 | const schema = instanceOf(globalThis.Error, { |
| 8664 | representation: { |
| 8665 | id: "effect/schema/Error", |
| 8666 | payload: normalizedOptions ?? null |
| 8667 | }, |
| 8668 | toCode: () => ({ |
| 8669 | runtime: normalizedOptions !== undefined |
| 8670 | ? `Schema.ErrorInstance(${format(normalizedOptions)})` |
nothing calls this directly
no test coverage detected
searching dependent graphs…