Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

serializeValue

function serializeValue(value, settings?): SerializedWorkerValue;

Defined in: packages/engine/src/worker/serialize.ts:65

Project a Value onto a SerializedWorkerValue.

text and number are set for every value; the type-specific fields are added only where the payload needs them, so the DTO stays minimal and a deep-equal between the two evaluation paths does not trip on a property one side left undefined.

ParameterType
valueValue
settings?FormattingSettings

SerializedWorkerValue