Variables
Const lower
lower
: (value
: A) => Result<A, B> = lowercase
Type declaration
-
-
Parameters
Returns Result<A, B>
Const upper
upper
: (value
: A) => Result<A, B> = uppercase
Type declaration
-
-
Parameters
Returns Result<A, B>
Functions
Const isString
- isString<A>(a: A): Either<Failure<A>, string>
-
Type parameters
Parameters
Returns Either<Failure<A>, string>
Const lowercase
- lowercase(value: string): Either<Failure<string>, string>
-
Parameters
Returns Either<Failure<string>, string>
Const notEmpty
- notEmpty(value: string): Either<Failure<string>, string>
-
Parameters
Returns Either<Failure<string>, string>
Const range
- range(min: number, max: number): Precondition<string, string>
Const toString
- toString<A>(a: A): Either<Failure<A>, string>
-
Type parameters
Parameters
Returns Either<Failure<A>, string>
Const trim
- trim(value: string): Either<Failure<string>, string>
-
Parameters
Returns Either<Failure<string>, string>
Const uppercase
- uppercase(value: string): Either<Failure<string>, string>
-
Parameters
Returns Either<Failure<string>, string>
isString tests if a value is a string.