Hyperlinkv0.9.0-beta.0

WorkPool

WorkPool.jsonValueconstsrc/WorkPool.ts:258
Schema.Codec<JsonValue, JsonValue, never, never>

Recursive structural JSON value schema — decodes to JsonValue. Used for the option attributes, which the engine persists as JSON. Schema.suspend breaks the self-reference.

wire schemasJsonValue
Source src/WorkPool.ts:25811 lines
export const jsonValue: Schema.Codec<JsonValue> = Schema.Union([
  Schema.Null,
  Schema.String,
  Schema.Number,
  Schema.Boolean,
  Schema.Record(
    Schema.String,
    Schema.suspend((): Schema.Codec<JsonValue> => jsonValue),
  ),
  Schema.Array(Schema.suspend((): Schema.Codec<JsonValue> => jsonValue)),
]);
Referenced by 2 symbols