A string literal type used as the dependency's unique tag
The type of the value this dependency resolves to
A string literal type used as the dependency's unique tag
The type of the value this dependency resolves to
Readonly__Readonly[Optional[Optional[ReadonlypipeComposes this effect with one or more Pipeable operations into a single sequential effect.
One or more pipeable operations to apply after this effect
A new Effect representing the composed pipeline
This is a fluent convenience method equivalent to calling the standalone pipe function with this effect as the first argument. It accepts transform functions, error handlers, and dependency providers.
ReadonlyprovideCreates a Provide effect that supplies a concrete value for this dependency.
The concrete value to supply for this dependency
A Provide effect that, when included in a pipeline,
makes instance available under this dependency's tag
The returned Provide instance is a Pipeable operation
intended for use with pipe or Effect.pipe. When the
pipeline executes, the provided value is written into the dependency
context so that any yield* of this dependency resolves to instance.
A typed dependency tag that represents a value effects need at runtime.
Remarks
Dependencyextends Effect so it can be yielded inside gen generators withyield*. When yielded, it looks up its tag in the internal context and returns the provided value. If the dependency has not been supplied via Dependency.provide, the effect fails withError("Missing dependency: <tag>").Instances are created via the dependency factory rather than by direct construction.
Example