of

Constructs a Validation holding a Success value.

Signature

of(value)
forall a, b: (b) => Validation a b

Documentation

Constructs a Validation holding a Success value.

Example:

const Validation = require('folktale/validation');

Validation.of(1);
// ==> Validation.Success(1)

Properties

Source Code

Defined in source/validation/validation.js at line 276, column 26
of(value) {
    return Success(value);
  }
Licence
MIT
Module
folktale/validation/validation
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)