StreamHaltStrategy
Constructors
Signature
declare const Both: HaltStrategySignature
declare const Either: HaltStrategySignature
declare const fromInput: (input: HaltStrategyInput) => HaltStrategySignature
declare const Left: HaltStrategySignature
declare const Right: HaltStrategyFolding
Folds over the specified HaltStrategy using the provided case functions.
Signature
declare const match: { <Z>(options: { readonly onBoth: () => Z; readonly onEither: () => Z; readonly onLeft: () => Z; readonly onRight: () => Z; }): (self: HaltStrategy) => Z; <Z>(self: HaltStrategy, options: { readonly onBoth: () => Z; readonly onEither: () => Z; readonly onLeft: () => Z; readonly onRight: () => Z; }): Z;}Models
Signature
interface Both { readonly _tag: "Both";}Signature
interface Either { readonly _tag: "Either";}HaltStrategy type
Added in v2.0.0
Source
Signature
type HaltStrategy = Left | Right | Both | EitherHaltStrategyInput type
Added in v2.0.0
Source
Signature
type HaltStrategyInput = HaltStrategy | "left" | "right" | "both" | "either"Signature
interface Left { readonly _tag: "Left";}Signature
interface Right { readonly _tag: "Right";}Refinements
Signature
declare const isBoth: (self: HaltStrategy) => self is BothSignature
declare const isEither: (self: HaltStrategy) => self is EitherSignature
declare const isLeft: (self: HaltStrategy) => self is LeftSignature
declare const isRight: (self: HaltStrategy) => self is Right