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

    Variable exactlyConst

    exactly: <T extends (string | number | boolean)[]>(
        ...expectedValues: T,
    ) => Codec<T[number]>

    A codec that only succeeds decoding when the value is exactly what you've constructed the codec with

    Type Declaration

      • <T extends (string | number | boolean)[]>(
            ...expectedValues: T,
        ): Codec<T[number]>
      • Type Parameters

        • T extends (string | number | boolean)[]

        Parameters

        • ...expectedValues: T

        Returns Codec<T[number]>