jarb-final-form
Version:
Validating forms through JaRB.
18 lines (17 loc) • 413 B
TypeScript
export interface Config {
constraintsUrl: string;
needsAuthentication: boolean;
}
/**
* 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;