/** * Provides the effect with the single service it requires. If the effect * requires more than one service use `provideEnvironment` instead. * * @tsplus static effect/core/io/Effect.Aspects provideService * @tsplus pipeable effect/core/io/Effect provideService */ export function provideService(tag: Tag, resource: T) { return (self: Effect): Effect, E, A> => self.provideServiceEffect(tag, Effect.succeed(resource)) }