Interface CreateOptionsGetterOptions<TOptionsConfig, TOptions>

Configuration options for the createOptionsGetter function.

interface CreateOptionsGetterOptions<
    TOptionsConfig extends OptionsConfig,
    TOptions extends OptionValues = {},
> {
    client?: Client;
    onPromptCancel?: () => void;
    optionsConfig: TOptionsConfig;
    optionValues?: TOptions;
}

Type Parameters

Properties

client?: Client

The client to use for prompting.

onPromptCancel?: () => void

A function to call when the user cancels a prompt. By default, this will exit the process.

optionsConfig: TOptionsConfig

The options config.

optionValues?: TOptions

The initial option values.