UNPKG

ferngully-aurelia-tools

Version:

Ferngully Tools for Aurelia

15 lines (14 loc) 691 B
import { Rule } from "aurelia-validation"; import { IFormSchema } from "./form-schema-service"; export declare class FormSchemaRulesProvider implements IFormSchemaRulesProvider { constructor(); validationRules: any; generateValidationRules(formSchema: IFormSchema, showingKeyColumn: boolean): Array<Rule<any, any>>; protected createRules(formSchema: IFormSchema, showingKeyColumn: boolean): any; private registerCustomRules(); private requiresValidation(property, jsonSchema, showingKeyColumn); } export interface IFormSchemaRulesProvider { generateValidationRules(formSchema: IFormSchema, showKeyColumn: boolean): void; validationRules: any; }