MLightCAD
    Preparing search index...

    Interface AcEdPromptState<TPromptOptions, TResult>

    Represents a single prompt step in a state machine workflow.

    Each state is responsible for:

    • Building a prompt (options/config) to show to the user.
    • Handling the prompt result and deciding whether to continue or finish.
    interface AcEdPromptState<TPromptOptions, TResult> {
        buildPrompt(): TPromptOptions;
        handleResult(
            result: TResult,
        ): AcEdPromptStateStep | Promise<AcEdPromptStateStep>;
    }

    Type Parameters

    • TPromptOptions

      The prompt options type passed to the editor.

    • TResult

      The result type returned by the editor.

    Index

    Methods