Template.ts overview
Since v1.0.0
Exports Grouped by Category
constructors
make
Signature
declare const make: <A extends ReadonlyArray<Interpolated>>(
strings: TemplateStringsArray,
...args: A
) => Effect.Effect<string, Interpolated.Error<A[number]>, Interpolated.Context<A[number]>>
Since v1.0.0
stream
Signature
declare const stream: <A extends ReadonlyArray<InterpolatedWithStream>>(
strings: TemplateStringsArray,
...args: A
) => Stream.Stream<string, Interpolated.Error<A[number]>, Interpolated.Context<A[number]>>
Since v1.0.0
models
Interpolated (type alias)
Signature
type Interpolated = Primitive | Option.Option<Primitive> | Effect.Effect<Primitive, any, any>
Since v1.0.0
Interpolated (namespace)
Since v1.0.0
Context (type alias)
Signature
type Context<A> = A extends infer T
? T extends Option.Option<infer _>
? never
: T extends Stream.Stream<infer _A, infer _E, infer R>
? R
: never
: never
Since v1.0.0
Error (type alias)
Signature
type Error<A> = A extends infer T
? T extends Option.Option<infer _>
? never
: T extends Stream.Stream<infer _A, infer E, infer _R>
? E
: never
: never
Since v1.0.0
InterpolatedWithStream (type alias)
Signature
type InterpolatedWithStream = Interpolated | Stream.Stream<Primitive, any, any>
Since v1.0.0
Primitive (type alias)
Signature
type Primitive = PrimitiveValue | ReadonlyArray<PrimitiveValue>
Since v1.0.0
PrimitiveValue (type alias)
Signature
type PrimitiveValue = string | number | bigint | boolean | null | undefined
Since v1.0.0