JSValueDecoder facilitates the decoding of JavaScript value into semantic Decodable types.
JSValueDecoder
Decodable
class JSValueDecoder
s13JavaScriptKit14JSValueDecoderC
7DUAJ
import JavaScriptKit
Swift framework to interact with JavaScript through WebAssembly.
init()
Initializes a new JSValueDecoder.
func decode<T>(_: T.Type = T.self, from value: JSValue, userInfo: [CodingUserInfoKey : Any] = [:]) throws -> T where T : Decodable
Decodes a top-level value of the given type from the given JavaScript value representation.