Decode an object with arbitrary keys and values of the same type T.
Decoder to use for values
const raw = { en: 'Bread', fr: 'Pain', it: 'Pane' };const decoder = Decode.dict(Decode.string);decode(decoder, raw); // Worksdecode(decoder, { en: 128 }); // Fails Copy
const raw = { en: 'Bread', fr: 'Pain', it: 'Pane' };const decoder = Decode.dict(Decode.string);decode(decoder, raw); // Worksdecode(decoder, { en: 128 }); // Fails
Generated using TypeDoc
Decode an object with arbitrary keys and values of the same type T.