@decaf-ts/decorator-validation
Version:
simple decorator based validation engine
13 lines (12 loc) • 475 B
TypeScript
import { Validator } from "./Validator";
/**
* @summary Marks the class as a validator for a certain key.
* @description Registers the class in the {@link Validation} with the provided key
*
* @param {string} keys the validation key
*
* @function validator
*
* @category Class Decorators
*/
export declare function validator<T extends Validator>(...keys: string[]): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;