Skip to main content Link Search Menu Expand Document (external link)

Fx overview

Re-exports from @typed/fx/Fx

Added in v1.0.0


Table of contents


exports

From “@typed/fx/Fx”

Fx documentation

Signature

export * from "@typed/fx/Fx"

Added in v1.0.0

utils

takeOneIfDomEnvironment

Signature

export declare const takeOneIfDomEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, CurrentEnvironment | R>

Added in v1.0.0

takeOneIfEnvironment

Signature

export declare const takeOneIfEnvironment: {
  (environments: ReadonlyArray<Environment>): <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, R | CurrentEnvironment>
  <A, E, R>(fx: Fx.Fx<A, E, R>, environments: ReadonlyArray<Environment>): Fx.Fx<A, E, R | CurrentEnvironment>
}

Added in v1.0.0

takeOneIfNotDomEnvironment

Signature

export declare const takeOneIfNotDomEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, R | CurrentEnvironment>

Added in v1.0.0

takeOneIfNotEnvironment

Signature

export declare const takeOneIfNotEnvironment: {
  (environments: ReadonlyArray<Environment>): <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, R | CurrentEnvironment>
  <A, E, R>(fx: Fx.Fx<A, E, R>, environments: ReadonlyArray<Environment>): Fx.Fx<A, E, R | CurrentEnvironment>
}

Added in v1.0.0

takeOneIfNotServerEnvironment

Signature

export declare const takeOneIfNotServerEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, CurrentEnvironment | R>

Added in v1.0.0

takeOneIfNotStaticEnvironment

Signature

export declare const takeOneIfNotStaticEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, CurrentEnvironment | R>

Added in v1.0.0

takeOneIfServerEnvironment

Signature

export declare const takeOneIfServerEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, CurrentEnvironment | R>

Added in v1.0.0

takeOneIfStaticEnvironment

Signature

export declare const takeOneIfStaticEnvironment: <A, E, R>(fx: Fx.Fx<A, E, R>) => Fx.Fx<A, E, CurrentEnvironment | R>

Added in v1.0.0