UNPKG

opds-web-client

Version:
14 lines (13 loc) 481 B
import { CollectionData, LinkData, FetchErrorData } from "../interfaces"; export interface CollectionState { url: string | null; data?: CollectionData | null; isFetching?: boolean; isFetchingPage: boolean; error?: FetchErrorData | null; history: LinkData[]; pageUrl?: string; } export declare const initialState: CollectionState; declare const collection: (state: CollectionState | undefined, action: any) => CollectionState; export default collection;