A highly composable BotAction for setting the first set of injects in a new line of BotAction's while appending the higher order
injects at the end.
const inject =(...newInjects: any) =>(...actions: BotAction<PipeValue|void>): BotAction<any> =>async(page, ...injects) =>await assemblyLine()(...actions)(page, ...newInjects, ...injects)
inject()() directly uses assemblyLine()(), it follows its aborting behavior.
Here is an usage example.Edit this page on GitHub