Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
877 B
JavaScript
24 lines
877 B
JavaScript
import { getFromContainer } from '../container';
|
|
/**
|
|
* This metadata interface contains information for custom validators.
|
|
*/
|
|
export class ConstraintMetadata {
|
|
// -------------------------------------------------------------------------
|
|
// Constructor
|
|
// -------------------------------------------------------------------------
|
|
constructor(target, name, async = false) {
|
|
this.target = target;
|
|
this.name = name;
|
|
this.async = async;
|
|
}
|
|
// -------------------------------------------------------------------------
|
|
// Accessors
|
|
// -------------------------------------------------------------------------
|
|
/**
|
|
* Instance of the target custom validation class which performs validation.
|
|
*/
|
|
get instance() {
|
|
return getFromContainer(this.target);
|
|
}
|
|
}
|
|
//# sourceMappingURL=ConstraintMetadata.js.map
|