Member Junction
    Preparing search index...

    Interface ResolveOrPromptOptions<T>

    Options for ResolveOrPrompt.

    interface ResolveOrPromptOptions<T> {
        flagValue: T;
        interactivity?: InteractivityInput;
        prompt: () => Promise<T>;
        suggestion: string;
        what: string;
    }

    Type Parameters

    • T
    Index

    Properties

    flagValue: T

    The value already supplied by a flag. Any value other than undefined wins outright — including false and '', which are legitimate answers.

    interactivity?: InteractivityInput

    Interactivity state; defaults to reading the env/TTY.

    prompt: () => Promise<T>

    Asks the human. Only ever invoked when ResolveInteractivity allows it.

    suggestion: string

    The exact remedy, e.g. Pass --entity "MJ: AI Prompts".

    what: string

    What is being asked for, for the error message — e.g. An entity name.