effect-io-ai

Package: effect
Module: Sink

Sink.provideService

Provides a single service implementation to this sink.

Details

The service identified by key is removed from the sink’s service requirements.

Signature

declare const provideService: { <I, S>(key: Context.Key<I, S>, value: Types.NoInfer<S>): <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<A, In, L, E, Exclude<R, I>>; <A, In, L, E, R, I, S>(self: Sink<A, In, L, E, R>, key: Context.Key<I, S>, value: Types.NoInfer<S>): Sink<A, In, L, E, Exclude<R, I>>; }

Source

Since v4.0.0