Skip to main content

Interface: DecodeContext

Context passed to ValueSerializer.decode.

Properties​

root​

readonly root: object;

Root of the tree the value is decoded against.

Methods​

decode()​

decode(json, key?): unknown;

Decodes a nested value with the same serializer.

Parameters​

ParameterTypeDescription
jsonJsonValueValue to decode.
key?PathElementWhere the value is inside its parent, for error paths.

Returns​

unknown

The decoded value.