Access the given property of an object.
Name of the property
The decoder to run on the value of that property
const decoder = Decode.field('value', Decode.integer);decode(decoder, { value: 42 }) === 42decode(decoder, {}) // Failsdecode(decoder, 42) // Fails Copy
const decoder = Decode.field('value', Decode.integer);decode(decoder, { value: 42 }) === 42decode(decoder, {}) // Failsdecode(decoder, 42) // Fails
Generated using TypeDoc
Access the given property of an object.