UNPKG

opds-web-client

Version:
17 lines (16 loc) 709 B
import { CollectionState } from "./reducers/collection"; import { BookState } from "./reducers/book"; import { LoansState } from "./reducers/loans"; import { AuthState } from "./reducers/auth"; import { PreferencesState } from "./reducers/preferences"; export interface State { collection: CollectionState; book: BookState; loans: LoansState; auth: AuthState; preferences: PreferencesState; } /** Builds initial redux state for a collection and book. This isn't used in this package, but it's available for other apps if they need to build the state for server-side rendering. */ export default function buildInitialState(collectionUrl?: string, bookUrl?: string): Promise<State>;