effect-io-ai

Package: effect
Module: Sink

Sink.as

Sets the sink’s result to a constant value.

When to use

Use to keep a sink’s input consumption, errors, requirements, and leftovers while replacing only its result with a known value.

See

Signature

declare const as: { <A2>(a2: A2): <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<A2, In, L, E, R>; <A, In, L, E, R, A2>(self: Sink<A, In, L, E, R>, a2: A2): Sink<A2, In, L, E, R>; }

Source

Since v2.0.0