Program

Namespace: Bolero

Functions to enable the router in an Elmish program.

Functions and values

Function or valueDescription
withRouter router program
Signature: router:IRouter<'model,'msg> -> program:Program<'model,'msg> -> Program<'?8077,'model,'msg,Node>
Type parameters: 'model, 'msg, '?8077

Attach router to program when it is run as the Program of a ProgramComponent.

withRouterInfer(...)
Signature: makeMessage:('ep -> 'msg) -> getEndPoint:('model -> 'ep) -> program:Program<'model,'msg> -> Program<'?8082,'model,'msg,Node>
Type parameters: 'ep, 'msg, 'model, '?8082

Attach a router inferred from makeMessage and getEndPoint to program when it is run as the Program of a ProgramComponent.