(value: T)
| 108 | * Create a successful prompt result. |
| 109 | */ |
| 110 | export function promptSuccess<T>(value: T): PromptSuccess<T> { |
| 111 | return { |
| 112 | aborted: false, |
| 113 | value, |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Create an aborted prompt result. |
no outgoing calls