UNPKG

@martinmilo/verve

Version:

TypeScript domain modeling library with field-level authorization, business rule validation, and context-aware access control

18 lines 619 B
interface Association { sourceModel: string; sourcePath: string; fieldName: string; targetModel: string; targetPath: string; } type ValidatorFn = (source: any, target: any) => boolean; export declare class AssociationRegistry { private static associations; private static validators; static register(association: Association): void; static getValidator(sourceModel: string, fieldName: string): ValidatorFn | undefined; static allValidators(): Record<string, ValidatorFn>; static allAssociations(): Association[]; } export {}; //# sourceMappingURL=AssociationRegistry.d.ts.map