Advanced
module Advanced| Assembly | Ranvier.Wire |
Functions and values
fromValue<'JsonValue, 'T> (helpers: IDecoderHelpers<'JsonValue>) (decoder: Decoder<'T>) (value: 'JsonValue) : Result<'T,string>
fromValue<'JsonValue, 'T> (helpers: IDecoderHelpers<'JsonValue>) (decoder: Decoder<'T>) (value: 'JsonValue) : Result<'T,string>Run a decoder against a JSON value of the runtime's own type, giving the formatted message on failure.
This is what a runtime package builds its Decode.fromValue on.