Invalid<T, E> constructor

const Invalid<T, E>(
  1. E error
)

Creates an invalid result with error.

Implementation

const Invalid(this.error);