ts.data.json - v4.1.0
    Preparing search index...

    Function boolean

    • Decoder for boolean values.

      Returns Decoder<boolean>

      A decoder that validates and returns boolean values

      JsonDecoder.boolean().decode(true); // Ok<boolean>({value: true})
      JsonDecoder.boolean().decode('true'); // Err({ issues: [{ message: '"true" is not a valid boolean', path: [] }] })