Interface InteractionBuilder<I, D>

A builder for customizing an existing user interaction with specific predicates that restricts the execution of the user interaction. These predicates can run at the start, the updates, and the end of the user interaction execution.

interface InteractionBuilder {
    build(): (() => I);
    end(predicate): InteractionBuilder<I, D>;
    first(predicate): InteractionBuilder<I, D>;
    firstAndThen(predicate): InteractionBuilder<I, D>;
    name(name): InteractionBuilder<I, D>;
    then(predicate): InteractionBuilder<I, D>;
}

Type Parameters

Implemented by

Methods

  • Returns (() => I)

    a command that produces an instance of the customized command.

      • (): I
      • Returns I

        a command that produces an instance of the customized command.

Generated using TypeDoc