| 47 | } |
| 48 | |
| 49 | export class InputFlowAction { |
| 50 | message: string | void |
| 51 | type: string |
| 52 | |
| 53 | constructor(type: string, message: string | void) { |
| 54 | this.type = type |
| 55 | this.message = message |
| 56 | } |
| 57 | |
| 58 | static back(message: string | void) { |
| 59 | return new InputFlowAction("back", message) |
| 60 | } |
| 61 | |
| 62 | static cancel(message: string | void) { |
| 63 | return new InputFlowAction("cancel", message) |
| 64 | } |
| 65 | |
| 66 | static resume(message: string | void) { |
| 67 | return new InputFlowAction("resume", message) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export type InputStep = ( |
| 72 | input: MultiStepInput, |
nothing calls this directly
no outgoing calls
no test coverage detected