Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

Template

7 exports Since v1.0.0 Source

Constructors

Since v1.0.0

Signature

declare function make<A extends readonly Array<Interpolated>>(strings: TemplateStringsArray, ...args: A): Effect<string, Error<A[number]>, Context<A[number]>>
Since v1.0.0

Signature

declare function stream<A extends readonly Array<InterpolatedWithStream>>(strings: TemplateStringsArray, ...args: A): Stream<string, Error<A[number]>, Context<A[number]>>

Models

Since v1.0.0

Signature

type Interpolated = Primitive | Option.Option<Primitive> | Effect.Effect<Primitive, any, any>

Signature

type InterpolatedWithStream = Interpolated | Stream.Stream<Primitive, any, any>
Since v1.0.0

Signature

type Primitive = PrimitiveValue | ReadonlyArray<PrimitiveValue>
Since v1.0.0

Signature

type PrimitiveValue = string | number | bigint | boolean | null | undefined