/** * Provides the effect with the single service it requires. If the effect * requires more than one service use `provideEnvironment` instead. * * @tsplus static effect/core/stm/STM.Aspects provideService * @tsplus pipeable effect/core/stm/STM provideService */ export function provideService(tag: Tag, service: T1) { return (self: STM): STM, E, A> => self.provideSomeEnvironment((env: Env>) => env.add(tag, service) as Env) }