@telostat/prelude - v0.7.0
    Preparing search index...

    Variable oneOfConst

    oneOf: <T extends [Codec<any>, ...Codec<any>[]]>(
        codecs: T,
    ) => Codec<GetType<T extends (infer U)[] ? U : never>>

    A codec combinator that receives a list of codecs and runs them one after another during decode and resolves to whichever returns Right or to Left if all fail

    Type Declaration