@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/README.md +12 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
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
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
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
|
|