feature: export ValidationMetadata
Description
Would be nice to have access to the ValidationMetadata class, which is used together with addValidationMetadata, this would enable the creation of custom decorators
Workaround is:
import { ValidationMetadata } from 'class-validator/cjs/metadata/ValidationMetadata';
import { ValidationMetadata } from "class-validator/cjs/metadata/ValidationMetadata";
compile error
Could not find a declaration file for module 'class-validator/cjs/metadata/ValidationMetadata'. '/Users/wmvm/node_modules/class-validator/cjs/metadata/ValidationMetadata.js' implicitly has an 'any' type. If the 'class-validator' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'class-validator/cjs/metadata/ValidationMetadata';
please export ValidationMetadata
I had to add a .d.ts file with contents: declare module 'class-validator/cjs/metadata/ValidationMetadata'; in order to bypass your error @wmvm0 and then used a @ts-ignore for the import. Ugly but works for now