Interface DidYouMeanActionCreators

The DidYouMean action creators.

See Dispatch actions.

interface DidYouMeanActionCreators {
    applyDidYouMeanCorrection(
        correction: string,
    ): { payload: string; type: string };
    disableAutomaticQueryCorrection(): { payload: void; type: string };
    disableDidYouMean(): { payload: void; type: string };
    enableAutomaticQueryCorrection(): { payload: void; type: string };
    enableDidYouMean(): { payload: void; type: string };
    setCorrectionMode(
        mode: CorrectionMode,
    ): { payload: CorrectionMode; type: string };
}

Methods

  • Sets the query correction mode.

    Parameters

    • mode: CorrectionMode

      The query correction mode to use. Must be either "legacy" (index based) or "next" (query suggestions based).

    Returns { payload: CorrectionMode; type: string }

    A dispatchable action.