TransformStateCallback

constructor(transformer: (R) -> U)

Parameters

T

The context type (see NodeParameterKey for details)

R

The initial type of the state, as input into this callback

U

The type of the output of this transformer, i.e. the type of the returned state.