UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

26 lines (25 loc) 1.13 kB
import { LastKeysState } from '../../jobs/reducers'; export declare const SET_JOBS_PAGINATION = "SET_JOBS_PAGINATION"; export declare const PAGE_FORWARDS = "PAGE_FORWARDS"; export declare const PAGE_BACKWARDS = "PAGE_BACKWARDS"; export declare const RESET_PAGINATION = "RESET_PAGINATION"; export interface SetJobsPaginationAction { type: 'SET_JOBS_PAGINATION'; lastKeys: LastKeysState[]; canPageForwards: boolean; canPageBack: boolean; } export interface PageForwardsAction { type: 'PAGE_FORWARDS'; } export interface PageBackwardsAction { type: 'PAGE_BACKWARDS'; } export interface ResetPaginationAction { type: 'RESET_PAGINATION'; } export declare type JobPaginationAction = SetJobsPaginationAction | PageForwardsAction | PageBackwardsAction | ResetPaginationAction; export declare const setJobsPagination: (lastKeys: LastKeysState[], canPageForwards: boolean, canPageBack: boolean) => SetJobsPaginationAction; export declare const resetPagination: () => ResetPaginationAction; export declare const pageForwards: () => PageForwardsAction; export declare const pageBackwards: () => PageBackwardsAction;