ParsedRules

API / publicodes / ParsedRules

type ParsedRules<RuleNames>: Record<RuleNames, RuleNode<RuleNames>>;

A set of rules that have been parsed from a RawPublicodes object.

Type Parameters

Type ParameterDefault type
RuleNames extends stringstring

Remarks

The Engine.evaluate method is responsable for parsing the rules and cache them in the engine, but you can also parse them manually with the $parsePublicodes function.

Defined in

packages/core/src/index.ts:87