UNPKG

java-bean-validation.js

Version:
9 lines (8 loc) 637 B
import { TypeName, Violation, TypeValidationsDescriptor, PropertyValidationsDescriptor } from '../core/core'; export declare type InputType = 'text' | 'checkbox' | 'number' | 'float' | 'date' | 'time' | 'datetime' | 'email' | 'url' | 'textarea' | 'password' | 'tel' | 'money'; declare module '../core/core' { interface PropertyValidationsDescriptor { htmlInputType?: InputType | null; } } export declare function getHtmlInputType(propertyOrTypeOrTypeName: PropertyValidationsDescriptor | TypeValidationsDescriptor | TypeName, propertyName: string | number, groups?: string[], violations?: Violation[]): InputType | null;