@salesforce/sf-plugins-core
    Preparing search index...

    Type Alias PromptInputs<T>

    type PromptInputs<T> = {
        defaultAnswer?: T;
        message: string;
        ms?: number;
    }

    Type Parameters

    • T
    Index
    defaultAnswer?: T

    default value to offer to the user. Will be used if the user does not respond within the timeout period.

    message: string

    text to display. Do not include a question mark

    ms?: number

    after this many ms, the prompt will time out. If a default value is provided, the default will be used. Otherwise the prompt will throw an error