jarb-redux-form
Version:
Validating forms through JaRB.
21 lines (20 loc) • 565 B
TypeScript
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;