Skip to main content Link Search Menu Expand Document (external link)

Readable overview

Added in v2.0.0


Table of contents


combinators

map

Signature

export declare const map: {
  <A, B>(f: (a: NoInfer<A>) => B): <E, R>(fa: Readable<A, E, R>) => Readable<B, E, R>
  <A, E, R, B>(self: Readable<A, E, R>, f: (a: NoInfer<A>) => B): Readable<B, E, R>
}

Added in v2.0.0

mapEffect

Signature

export declare const mapEffect: {
  <A, B, E2, R2>(f: (a: NoInfer<A>) => Effect<B, E2, R2>): <E, R>(fa: Readable<A, E, R>) => Readable<B, E | E2, R | R2>
  <A, E, R, B, E2, R2>(self: Readable<A, E, R>, f: (a: NoInfer<A>) => Effect<B, E2, R2>): Readable<B, E | E2, R | R2>
}

Added in v2.0.0

constructors

make

Signature

export declare const make: <A, E, R>(get: Effect<A, E, R>) => Readable<A, E, R>

Added in v2.0.0

unwrap

Signature

export declare const unwrap: <A, E, R, E1, R1>(effect: Effect<Readable<A, E, R>, E1, R1>) => Readable<A, E | E1, R | R1>

Added in v2.0.0

models

Readable (interface)

Signature

export interface Readable<A, E = never, R = never> extends Pipeable {
  readonly [TypeId]: TypeId
  readonly get: Effect<A, E, R>
}

Added in v2.0.0

refinements

isReadable

Signature

export declare const isReadable: (u: unknown) => u is Readable<unknown, unknown, unknown>

Added in v2.0.0

type ids

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v2.0.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v2.0.0