Skip to content

deserializeScalarSketchJson(value): ScalarSketch

Defined in: packages/scalar-sketch/src/serialization/json.ts:131

Deserialize exact state from an untrusted logical JSON value. Records must have exactly the documented keys as own data properties. State arrays must use Array.prototype, have the exact expected length, and contain own, enumerable numeric data elements at every index without holes, enumerable extras, or symbol properties. Non-enumerable string metadata on an array is ignored because it cannot affect logical restoration. Accessors at logical fields or array indices are rejected through descriptors without invocation.

unknown

ScalarSketch

For malformed envelopes, unsupported scalar-sketch versions, unknown discriminants, or invalid family state.

From knotkit/hash for invalid hash identities.