ChoiceDefaultsConfirmPrompt interface
Defines locale-specific choice defaults for confirmation prompts.
Example
const customChoiceDefaults: ChoiceDefaultsConfirmPrompt = {
'en-us': {
choices: ['Yes', 'No'],
options: {
inlineSeparator: ', ',
inlineOr: ' or ',
includeNumbers: true
}
},
'es-es': {
choices: ['Sí', 'No'],
options: {
inlineSeparator: ', ',
inlineOr: ' o ',
includeNumbers: true
}
}
};
Remarks
This interface represents a dictionary that maps locale strings to their corresponding choice configurations for confirmation prompts. Each locale entry contains the localized "yes" and "no" choices along with formatting options for how those choices should be presented to the user.
The interface is designed to support dynamic configuration of choice defaults using lambda expressions or other dynamic assignment patterns.