The RecentResults action creators

interface RecentResultsActionCreators {
    clearRecentResults(): { payload: void; type: string };
    pushRecentResult(payload: Result): { payload: Result; type: string };
    registerRecentResults(
        payload: RegisterRecentResultsCreatorPayload,
    ): { payload: RegisterRecentResultsCreatorPayload; type: string };
}

Methods

  • Clear the recent results list.

    Returns { payload: void; type: string }

    A dispatchable action.

  • Add the recent result to the list.

    Parameters

    • payload: Result

      (Result) The result to add.

    Returns { payload: Result; type: string }

    A dispatchable action.