UNPKG

jarb-redux-form

Version:
21 lines (20 loc) 565 B
import { ConstraintsStore, Action } from './constraints-reducer'; export interface Config { constraintsUrl: string; needsAuthentication: boolean; dispatch: (action: Action) => void; constraintsStore: () => ConstraintsStore; } /** * Configures the Constraint libary. * * @param {Config} The new configuration */ export declare function configureConstraint(c: Config): void; /** * Either returns the a Config or throws an error when the * config is not yet initialized. * * @returns The Config */ export declare function getConfig(): Config;