Skip to main content

class InstanceImpl<I,O,S>

The default Reducer.Impl implementation.

Implements: Reducer.Instance<I,O>

Type parameters​

NameDescription
Ithe input element type
Othe output element type
Sthe reducer state type

Properties​

halt​

undocumented

Definition​

halt: () => void;

halted​

undocumented

Definition​

get halted(): boolean;

Overrides​

Instance.halted

index​

undocumented

Definition​

get index(): number;

Overrides​

Instance.index

next​

undocumented

Definition​

next: (value: I) => void;

reducer​

undocumented

Definition​

readonly reducer: Reducer.Impl<I, O, S>;

Methods​

getOutput​

undocumented

Definition​

getOutput(): O;

Overrides​

Instance.getOutput

halt​

Method that, when called, halts the reducer instance so that it will no longer receive values.

Definition​

halt(): void;

Overrides​

Instance.halt

next​

Sends a new value into the reducer instance.

Definition​

next(value: I): void;

Parameters​

NameTypeDescription
valueIthe next input value

Overrides​

Instance.next