( effect: Effect.Effect<Context.Context<A>, E, R> )
| 955 | |
| 956 | /** @internal */ |
| 957 | export const scopedContext = <A, E, R>( |
| 958 | effect: Effect.Effect<Context.Context<A>, E, R> |
| 959 | ): Layer.Layer<A, E, Exclude<R, Scope.Scope>> => { |
| 960 | const scoped = Object.create(proto) |
| 961 | scoped._op_layer = OpCodes.OP_SCOPED |
| 962 | scoped.effect = effect |
| 963 | return scoped |
| 964 | } |
| 965 | |
| 966 | /** @internal */ |
| 967 | export const scope: Layer.Layer<Scope.Scope> = scopedContext( |
no test coverage detected