UNPKG

@martinmilo/verve

Version:

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

12 lines 449 B
import { MODEL_CONTEXT } from '../../constants'; type Constructor<T = {}> = new (...args: any[]) => T; export declare function WithContext<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { withContext(context: any): /*elided*/ any; getContext(): any; [MODEL_CONTEXT]?: any; }; withContext<T extends typeof Base>(this: T, context: any): T; } & TBase; export {}; //# sourceMappingURL=mixin.d.ts.map