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
| Parameter | Type | Description |
|---|---|---|
json | JsonValue | Value to decode. |
key? | PathElement | Where the value is inside its parent, for error paths. |
Returns
unknown
The decoded value.