Constructors
constructor
-
Parameters
-
setState: function
-
Optional _mapper: Mapper<any, A>
Properties
none
none
: Sub<any>[] = Cmd.none
setState
setState: function
Methods
addFn
- addFn<Arg, T>(task?: undefined | function, succeedAction?: ActionType<T, S, A>, failedAction?: ActionType<Error, S, A>): void
-
Type parameters
Parameters
-
Optional task: undefined | function
-
Optional succeedAction: ActionType<T, S, A>
-
Optional failedAction: ActionType<Error, S, A>
Returns void
addPromise
- addPromise<Arg, T>(task: function, args: Arg, succeedAction?: ActionType<T, S, A>, failedAction?: ActionType<Error, S, A>): void
- addPromise<Arg, T>(task: function, succeedAction?: ActionType<T, S, A>, failedAction?: ActionType<Error, S, A>): void
-
Type parameters
Parameters
-
task: function
-
-
Parameters
Returns Promise<T>
-
args: Arg
-
Optional succeedAction: ActionType<T, S, A>
-
Optional failedAction: ActionType<Error, S, A>
Returns void
-
Type parameters
Parameters
-
task: function
-
Optional succeedAction: ActionType<T, S, A>
-
Optional failedAction: ActionType<Error, S, A>
Returns void
addSub
- addSub(...subs: Sub<A>[]): void
map
-
Type parameters
Parameters