Function
stepWith
(
step: Step<any, any, any, any>,
change: Partial<Step<any, any, any, any>>
)
Source from the content-addressed store, hash-verified
| 1187 | }) |
| 1188 | |
| 1189 | const stepWith = ( |
| 1190 | step: Step<any, any, any, any>, |
| 1191 | change: Partial<Step<any, any, any, any>> |
| 1192 | ): Step<any, any, any, any> => |
| 1193 | Object.assign( |
| 1194 | makeStep( |
| 1195 | step.model, |
| 1196 | step.commands, |
| 1197 | step.emitted, |
| 1198 | step.lists, |
| 1199 | step.sends, |
| 1200 | step.viewTransitionTypes |
| 1201 | ), |
| 1202 | change |
| 1203 | ) |
| 1204 | |
| 1205 | type AnyUpdate = ($: Update<any, any, any, any>, msg: unknown) => unknown |
| 1206 | |
Tested by
no test coverage detected