@inixiative/json-rules 2.19.2 → 2.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -369,16 +369,12 @@ type StrictIfThenElse<TRuleValue = RuleValue, TDateValue = DateRuleValue> = {
369
369
  };
370
370
  type StrictCondition<TRuleValue = RuleValue, TDateValue = DateRuleValue> = StrictRule<TRuleValue> | StrictAggregateRule<TRuleValue, TDateValue> | StrictArrayRule<TRuleValue, TDateValue> | StrictDateRule | StrictAll<TRuleValue, TDateValue> | StrictAny<TRuleValue, TDateValue> | StrictIfThenElse<TRuleValue, TDateValue> | boolean;
371
371
 
372
- /**
373
- * Names of every `{ bind }` token reachable in a condition tree. The flat-set
374
- * shorthand a caller validates a bindings map against (`keys(bindings) ⊇ requiredBindings`).
375
- */
372
+ /** Names of every `{ bind }` token in the tree — the set a bindings map must cover. */
376
373
  declare const requiredBindings: (condition: Condition) => Set<string>;
377
374
  /**
378
- * Replace each `{ bind }` token the map covers with its `{ value }`, leaving uncovered
379
- * tokens in place (partial / progressive resolution `requiredBindings` shrinks). A node
380
- * may carry both its own value-bind and a nested condition (aggregate/array), so both are
381
- * handled. Does not mutate the input.
375
+ * Substitute covered binds with their values; uncovered tokens stay in place (partial
376
+ * resolution). A supplied-but-undefined binding becomes null to stay serializable.
377
+ * Non-mutating.
382
378
  */
383
379
  declare const resolveBindings: (condition: Condition, bindings: Record<string, RuleValue>) => Condition;
384
380
 
package/dist/index.d.ts CHANGED
@@ -369,16 +369,12 @@ type StrictIfThenElse<TRuleValue = RuleValue, TDateValue = DateRuleValue> = {
369
369
  };
370
370
  type StrictCondition<TRuleValue = RuleValue, TDateValue = DateRuleValue> = StrictRule<TRuleValue> | StrictAggregateRule<TRuleValue, TDateValue> | StrictArrayRule<TRuleValue, TDateValue> | StrictDateRule | StrictAll<TRuleValue, TDateValue> | StrictAny<TRuleValue, TDateValue> | StrictIfThenElse<TRuleValue, TDateValue> | boolean;
371
371
 
372
- /**
373
- * Names of every `{ bind }` token reachable in a condition tree. The flat-set
374
- * shorthand a caller validates a bindings map against (`keys(bindings) ⊇ requiredBindings`).
375
- */
372
+ /** Names of every `{ bind }` token in the tree — the set a bindings map must cover. */
376
373
  declare const requiredBindings: (condition: Condition) => Set<string>;
377
374
  /**
378
- * Replace each `{ bind }` token the map covers with its `{ value }`, leaving uncovered
379
- * tokens in place (partial / progressive resolution `requiredBindings` shrinks). A node
380
- * may carry both its own value-bind and a nested condition (aggregate/array), so both are
381
- * handled. Does not mutate the input.
375
+ * Substitute covered binds with their values; uncovered tokens stay in place (partial
376
+ * resolution). A supplied-but-undefined binding becomes null to stay serializable.
377
+ * Non-mutating.
382
378
  */
383
379
  declare const resolveBindings: (condition: Condition, bindings: Record<string, RuleValue>) => Condition;
384
380