StrictOptions

API / publicodes / StrictOptions

type StrictOptions: object;

Type declaration

NameTypeDescriptionDefined in
noOrphanRule?booleanIf set to true, the engine will throw when parsing a rule whose parent doesn’t exist This can be set to false to parse partial rule sets (e.g. optimized ones). Default truepackages/core/src/engine/index.ts:76
situation?booleanIf set to true, the engine will throw when the situation contains invalid values (rules that don’t exists, or values with syntax errors). If set to false, it will log the error and filter the invalid values from the situation Default truepackages/core/src/engine/index.ts:69

Defined in

packages/core/src/engine/index.ts:60