nowjs-core
Version:
NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence
5 lines (4 loc) • 332 B
TypeScript
import 'reflect-metadata';
export declare type ValidateIfFunc = (...args: any[]) => boolean;
export declare const VALIDATION_VALIDATEIF_METADATA_KEY: unique symbol;
export declare function validateIf(fn: ValidateIfFunc): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void;