(ctx: EncodeContext, value: unknown, w: Writer)
| 3291 | } |
| 3292 | |
| 3293 | function encodeSymbol(ctx: EncodeContext, value: unknown, w: Writer) { |
| 3294 | const key = globalThis.Symbol.keyFor(value as symbol) |
| 3295 | if (key === undefined) encodeFail("registered symbol", value, ctx.options) |
| 3296 | w.string(key) |
| 3297 | } |
| 3298 | |
| 3299 | function encodeReason(ctx: EncodeContext, layout: ReasonLayout, value: unknown, w: Writer) { |
| 3300 | const reason = value as Cause.Reason<unknown> |
no test coverage detected