Link Search Menu Expand Document

validate overview

Added in v0.0.2


Table of contents


Validators

validate

validate with custom condition

Signature

export declare const validate: <T>(
  f: (a: any) => boolean
) => <E>(b: E) => <A>(a: A) => E.Either<E, unknown extends T ? (unknown extends A ? any : A) : T>

Added in v0.0.2