Options
All
  • Public
  • Public/Protected
  • All
Menu

Package validation

@typed/validation

A data structure, built atop @typed/either for capturing more than one error.

Index

Namespaces

Variables

Functions

Variables

Const validate

validate: { <A, B, C>(error: A, match: Match<B, C>, value: B): Validation<A, C>; <A, B, C>(error: A, match: Match<B, C>): (value: B) => Validation<A, C>; <A>(error: A): { <B, C>(match: Match<B, C>, value: B): Validation<A, C>; <B, C>(match: Match<B, C>): (value: B) => Validation<A, C> } } = curry(__validate) as {<A, B, C>(error: A, match: Match<B, C>, value: B): Validation<A, C><A, B, C>(error: A, match: Match<B, C>): (value: B) => Validation<A, C><A>(error: A): {<B, C>(match: Match<B, C>, value: B): Validation<A, C><B, C>(match: Match<B, C>): (value: B) => Validation<A, C>}}

Type declaration

    • <A, B, C>(error: A, match: Match<B, C>, value: B): Validation<A, C>
    • <A, B, C>(error: A, match: Match<B, C>): (value: B) => Validation<A, C>
    • <A>(error: A): { <B, C>(match: Match<B, C>, value: B): Validation<A, C>; <B, C>(match: Match<B, C>): (value: B) => Validation<A, C> }
    • Type parameters

      • A

      • B

      • C

      Parameters

      • error: A
      • match: Match<B, C>
      • value: B

      Returns Validation<A, C>

    • Type parameters

      • A

      • B

      • C

      Parameters

      • error: A
      • match: Match<B, C>

      Returns (value: B) => Validation<A, C>

    • Type parameters

      • A

      Parameters

      • error: A

      Returns { <B, C>(match: Match<B, C>, value: B): Validation<A, C>; <B, C>(match: Match<B, C>): (value: B) => Validation<A, C> }

        • <B, C>(match: Match<B, C>, value: B): Validation<A, C>
        • <B, C>(match: Match<B, C>): (value: B) => Validation<A, C>
        • Type parameters

          • B

          • C

          Parameters

          • match: Match<B, C>
          • value: B

          Returns Validation<A, C>

        • Type parameters

          • B

          • C

          Parameters

          • match: Match<B, C>

          Returns (value: B) => Validation<A, C>

Functions

concat

Generated using TypeDoc