Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

Precondition

Precondition<A, B>: (a: A) => Future<Result<A, B>>

Precondition (async).

Type parameters

  • A

  • B

Type declaration

    • (a: A): Future<Result<A, B>>
    • Parameters

      • a: A

      Returns Future<Result<A, B>>

Variables

Const id

id: identity = identity

Functions

Const and

Const async

  • async<A, B>(p: sync.Precondition<A, B>): Precondition<A, B>
  • async wraps a sync api function so it can be used with other async functions.

    Type parameters

    • A

    • B

    Parameters

    • p: sync.Precondition<A, B>

    Returns Precondition<A, B>

Const caseOf

Const discard

  • discard<A>(_: A): Future<Either<Failure<A>, undefined>>
  • discard (async).

    Type parameters

    • A

    Parameters

    • _: A

    Returns Future<Either<Failure<A>, undefined>>

Const every

Const identity

  • identity<A>(value: A): Future<Either<Failure<A>, A>>
  • identity precondtion.

    Succeeds with whatever value is passed.

    Type parameters

    • A

    Parameters

    • value: A

    Returns Future<Either<Failure<A>, A>>

Const log

  • log<A>(value: A): Result<A, A>
  • log the value to the console.

    Type parameters

    • A

    Parameters

    • value: A

    Returns Result<A, A>

Const match

Const optional

Const or

Const reject

  • reject always fails with reason no matter the value supplied.

    Type parameters

    • A

    Parameters

    • reason: string

    Returns Precondition<A, A>

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class with type parameter

Generated using TypeDoc