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<'model,'msg>
Type parameters: 'model, 'msg

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<'model,'msg>
Type parameters: 'ep, 'msg, 'model

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