UNPKG

class-validator

Version:

Decorator-based property validation for classes.

6 lines (5 loc) 247 B
import { ValidationOptions } from '../ValidationOptions'; /** * If object has both allowed and not allowed properties a validation error will be thrown. */ export declare function Allow(validationOptions?: ValidationOptions): PropertyDecorator;