Takes one or more decoders and produces a decoder for a Tuple of elements decoder provided.
Example
asTuple(asConst("archived")) // Decoder<["archived"]>asTuple(asString, asInt) // Decoder<[string, int]>asTuple(asString, asInt, asBoolean) // Decoder<[string, int, boolean]> Copy
asTuple(asConst("archived")) // Decoder<["archived"]>asTuple(asString, asInt) // Decoder<[string, int]>asTuple(asString, asInt, asBoolean) // Decoder<[string, int, boolean]>
A decoder for the first tuple item
Rest
A variable number of decoders for the other tuple items
A decoder for a Tuple of [T1, ...TN]
Generated using TypeDoc
Takes one or more decoders and produces a decoder for a Tuple of elements decoder provided.
Example