UNPKG

@martinmilo/verve

Version:

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

16 lines 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLazyFieldCompute = isLazyFieldCompute; exports.isEagerFieldCompute = isEagerFieldCompute; exports.toLazyFieldCompute = toLazyFieldCompute; function isLazyFieldCompute(v) { return typeof v === 'function' && '__lazy' in v; } function isEagerFieldCompute(v) { return typeof v === 'function' && !('__lazy' in v); } function toLazyFieldCompute(v) { v.__lazy = true; return v; } //# sourceMappingURL=compute.js.map