taskEither.ts 293 B

12345678910111213
  1. import * as TE from "fp-ts/TaskEither"
  2. /**
  3. * A utility type which gives you the type of the left value of a TaskEither
  4. */
  5. export type TELeftType<T extends TE.TaskEither<any, any>> =
  6. T extends TE.TaskEither<
  7. infer U,
  8. // eslint-disable-next-line
  9. infer _
  10. >
  11. ? U
  12. : never