UNPKG

@apizr-io/class-utils

Version:

Package containing all class-validator function with all custom apizr class validation functions

10 lines (9 loc) 389 B
import { ValidatorConstraintInterface } from 'class-validator'; type AnyClass = new (...args: any[]) => any; export type ClassValidationDecorator = <T extends AnyClass>(target: T) => AnyClass; export declare function registerClassValidator(options: { name: string; validator: new () => ValidatorConstraintInterface; constraints: any[]; }): ClassValidationDecorator; export {};