PromptUtil

Utility functions for the prompts.

Methods

# (inner) createPrompt(promptInfo) → {Promise.<String>}

Creates the prompt out of the promptInfo data.
Parameters:
Name Type Description
promptInfo PromptInfo
Returns:
Type
Promise.<String>

# (inner) validatePromptInfo(promptInfo) → {PromptInfo}

Validates the prompt info and returns the validated object.
Parameters:
Name Type Description
promptInfo PromptInfo
Throws:
Errors if the information is not valid!
Returns:
Type
PromptInfo