-
Notifications
You must be signed in to change notification settings - Fork 0
Question
Lukas Dattenberger edited this page Feb 8, 2022
·
1 revision
▸ askQuestion<T>(question, inputChecker, resultGenerator, options?): T
Asks a user to enter a value until a valid input is revieved. Use the inputChecker RegExp to controll the user input.
| Name | Type |
|---|---|
T |
boolean |
| Name | Type |
|---|---|
question |
string |
inputChecker |
RegExp | (response: string) => boolean
|
resultGenerator |
QustionResultGenerator<T> |
options? |
BasicOptions |
T
▸ askQuestionYN<T>(question, options?): boolean
| Name | Type |
|---|---|
T |
boolean |
| Name | Type | Description |
|---|---|---|
question |
string |
|
options? |
String | BasicOptions
|
readlineSync.BasicOptions oder defaultInput |
boolean
▸ askQuestionYnWait<T>(question, options?): Promise<boolean>
| Name | Type |
|---|---|
T |
boolean |
| Name | Type |
|---|---|
question |
string |
options? |
BasicOptions |
Promise<boolean>