Roqueform
    Preparing search index...

    Module @roqueform/doubter-plugin

    Validates Roqueform fields with Doubter shapes.

    npm install --save-prod @roqueform/doubter-plugin
    

    Create a field validated by a Doubter shape:

    import * as d from 'doubter';
    import { createField } from 'roqueform';
    import errorsPlugin from 'roqueform/plugin/errors';
    import doubterPlugin, { concatDoubterIssues } from '@roqueform/doubter';

    const fieldShape = d.object({
    hello: d.string()
    });

    const field = createField({ hello: 'world' }, [
    errorsPlugin(concatDoubterIssues),
    doubterPlugin(fieldShape)
    ]);

    field.at('hello').validate() // ⮕ true

    Interfaces

    DoubterMixin

    Variables

    concatDoubterIssues

    Functions

    default