Accessing the Value of a Key in a Struct

how to get the value of key in a Struct?

suppose we've S.Struct({name: S.String})
how can return the S.String of name during decoding?
S.decodeUnknownSync(S.Struct({mssg:S.String}))({mssg: "Hello World"}) // should return "Hello World"
Was this page helpful?