Type aliases
Capabilities
Capabilities<A>: A extends Effects<infer R, any> ? R : never
Type parameters
CombinedCapabilities
Type parameters
-
A: ReadonlyArray<Effect<any, any>>
CombinedValues
CombinedValues<A>: {}
Type parameters
-
A: ReadonlyArray<Effect<any, any>>
ErrorOf
ErrorOf<E, K>: FailuresOf<E>[K] extends Fail<infer R> ? R : never
Type parameters
Fail
Type parameters
Type declaration
-
-
Type parameters
Parameters
FailEnv
FailEnv<K, Err>: {}
Type parameters
FailureTypes
Type parameters
FailuresOf
Type parameters
FiberInfo
Type parameters
Fork
Type declaration
-
-
-
Type parameters
Parameters
ForkAll
ForkAll<A>: {}
Type parameters
-
A: ReadonlyArray<Effect<any, any>>
IteratorResultOf
Iterator
ResultOf<A>: IteratorResult<Yield<A>, Return<A>>
Type parameters
Join
Type declaration
-
-
-
Type parameters
Parameters
JoinAll
JoinAll<A>: {}
Type parameters
-
A: ReadonlyArray<Fiber<any>>
Kill
Type declaration
-
Readonly kill: <A>(f: Fiber<A>) => Resume<boolean>
-
-
Type parameters
Parameters
Returns Resume<boolean>
PureEffect
Pure
Effect<A>: Effect<Pure<any>, A>
Type parameters
Return
Return<A>: A extends Effect<any, infer R> ? R : never
Type parameters
RunWith
RunWith<A, C>: C extends Capabilities<A> ? PureEffect<Return<A>> : Effects<Omit<Capabilities<A>, keyof C>, Return<A>>
Type parameters
TimerEnv
TimerEnv: { timer: Timer }
TypeOf
Type
Of<A>: A extends Effect<any, any> ? Effects<Capabilities<A>, Return<A>> : A extends (...args: keyof any[]) => Effects<any, any> ? Effects<Capabilities<ReturnType<A>>, Return<ReturnType<A>>> : unknown
Type parameters
Yield
Yield<A>: A extends Effect<infer R, any> ? R : never
Type parameters
@typed/effects
Generator-based effect management and reverse dependency injection.