UNPKG

@martinmilo/verve

Version:

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

16 lines 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLazyFieldGenerator = isLazyFieldGenerator; exports.isEagerFieldGenerator = isEagerFieldGenerator; exports.toLazyFieldGenerator = toLazyFieldGenerator; function isLazyFieldGenerator(v) { return typeof v === 'function' && '__lazy' in v; } function isEagerFieldGenerator(v) { return typeof v === 'function' && !('__lazy' in v); } function toLazyFieldGenerator(v) { v.__lazy = true; return v; } //# sourceMappingURL=generator.js.map