Phantom Stories Library - v0.0.8
    Preparing search index...

    Interface ValidationPattern<T, R>

    Pattern for matching Validation states, used with matchWith.

    interface ValidationPattern<T, R> {
        Failing: (validation: Failing) => R;
        Passing: (validation: Passing<T>) => R;
    }

    Type Parameters

    • T

      The type of the data in Passing state.

    • R

      The return type of the pattern functions.

    Index

    Properties

    Properties

    Failing: (validation: Failing) => R
    Passing: (validation: Passing<T>) => R