java-bean-validation.js
Version:
Java Bean Validation implementation for JavaScript
9 lines (8 loc) • 637 B
TypeScript
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;