jarb-redux-form
Version:
Validating forms through JaRB.
13 lines (12 loc) • 505 B
TypeScript
import { Constraints } from './models';
export interface Action {
type: 'JARB_REDUX_FORM.SET_CONSTRAINTS';
constraints: Constraints;
}
export declare const SET_CONSTRAINTS = "SET_CONSTRAINTS";
export interface ConstraintsStore {
constraints?: Constraints;
}
export declare const initialState: ConstraintsStore;
export declare function constraints(state: ConstraintsStore | undefined, action: Action): ConstraintsStore;
export declare function setConstraints(constraints: Constraints): Action;