dist/es2017/aurelia-validation.js
function configure(
// tslint:disable-next-line:ban-types
frameworkConfig, callback) {
    // the fluent rule definition API needs the parser to translate messages
    // to interpolation expressions.
    const messageParser = frameworkConfig.container.get(ValidationMessageParser);
    const propertyParser = frameworkConfig.container.get(PropertyAccessorParser);
    ValidationRules.initialize(messageParser, propertyParser);
    // configure...
    const config = new AureliaValidationConfiguration();
    if (callback instanceof Function) {
        callback(config);
    }
    config.apply(frameworkConfig.container);
    // globalize the behaviors.
    if (frameworkConfig.globalResources) {
        frameworkConfig.globalResources(ValidateBindingBehavior, ValidateManuallyBindingBehavior, ValidateOnBlurBindingBehavior, ValidateOnChangeBindingBehavior, ValidateOnChangeOrBlurBindingBehavior, ValidationErrorsCustomAttribute, ValidationRendererCustomAttribute);
    }
}
function configure(
// tslint:disable-next-line:ban-types
frameworkConfig, callback) {
    // the fluent rule definition API needs the parser to translate messages
    // to interpolation expressions.
    const messageParser = frameworkConfig.container.get(ValidationMessageParser);
    const propertyParser = frameworkConfig.container.get(PropertyAccessorParser);
    ValidationRules.initialize(messageParser, propertyParser);
    // configure...
    const config = new AureliaValidationConfiguration();
    if (callback instanceof Function) {
        callback(config);
    }
    config.apply(frameworkConfig.container);
    // globalize the behaviors.
    if (frameworkConfig.globalResources) {
        frameworkConfig.globalResources(ValidateBindingBehavior, ValidateManuallyBindingBehavior, ValidateOnBlurBindingBehavior, ValidateOnChangeBindingBehavior, ValidateOnChangeOrBlurBindingBehavior, ValidationErrorsCustomAttribute, ValidationRendererCustomAttribute);
    }
}
function configure ( // tslint:disable-next-line:ban-types
 frameworkConfig , callback ) { // the fluent rule definition API needs the parser to translate messages
 // to interpolation expressions.
 const messageParser = frameworkConfig . container . get ( ValidationMessageParser ) ; const propertyParser = frameworkConfig . container . get ( PropertyAccessorParser ) ; ValidationRules . initialize ( messageParser , propertyParser ) ; // configure...
 const config = new AureliaValidationConfiguration ( ) ; if ( callback instanceof Function ) { callback ( config ) ; } config . apply ( frameworkConfig . container ) ; // globalize the behaviors.
 if ( frameworkConfig . globalResources ) { frameworkConfig . globalResources ( ValidateBindingBehavior , ValidateManuallyBindingBehavior , ValidateOnBlurBindingBehavior , ValidateOnChangeBindingBehavior , ValidateOnChangeOrBlurBindingBehavior , ValidationErrorsCustomAttribute , ValidationRendererCustomAttribute ) ; } }
Configures the plugin.
Configures the plugin .