frontend
    Preparing search index...

    Variable napoleonApiConst

    napoleonApi: {
        exec: (
            command:
                | "reset"
                | "log"
                | "play"
                | "exchange"
                | "next"
                | "nextround"
                | "hint"
                | "bid"
                | "trump"
                | "setdifficulty"
                | "setlimit"
                | "setminbid",
            bid?: number,
            trumpSuit?: number,
            adjutantSuit?: number,
            adjutantValue?: number,
            discardIndex?: number,
            cardIndex?: number,
            config?: NapoleonConfigInput,
        ) => Promise<NapoleonResponse>;
    } = ...

    API client for the Napoleon /napoleon/exec endpoint.

    Type Declaration

    • exec: (
          command:
              | "reset"
              | "log"
              | "play"
              | "exchange"
              | "next"
              | "nextround"
              | "hint"
              | "bid"
              | "trump"
              | "setdifficulty"
              | "setlimit"
              | "setminbid",
          bid?: number,
          trumpSuit?: number,
          adjutantSuit?: number,
          adjutantValue?: number,
          discardIndex?: number,
          cardIndex?: number,
          config?: NapoleonConfigInput,
      ) => Promise<NapoleonResponse>