Loading tutorials
Step type used here.3 min readvalidate returns a list of problems and that advance stays on the current step when that list is not empty. Here you will change what happens to that list: how it is shaped, worded3 min readFlowState shape (current step, history, data, errors) and how advance and back work.3 min readFlowState holds the current step, a history stack, and collected data, and how each step's next function picks the following step.3 min readStep type and the Data record from those chapters. Here you will add the last screen of a flow, the review step, and make the final submission safe.3 min readFlowState type from earlier chapters: a current step id, a history stack, collected data, and errors. It also assumes you can read basic TypeScript and know how forms hold values.3 min readFlowState with current, history, data and errors, plus advance and back functions. It also assumes you can read basic HTML and know what ARIA attributes are. The code here is framework-neutral TypeScript that works a3 min readsteps table, an advance function, a back function, and a FlowState with current, history, data, and errors. It also assumes you have written unit tests in some framework. The examples use Node's built-in test r3 min read