Skip to content

Advanced

module Advanced
AssemblyRanvier.Wire

Functions and values

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.