EngineOptions

API / publicodes / EngineOptions

type EngineOptions: object;

Options for the engine constructor

Type declaration

NameTypeDescriptionDefined in
allowOrphanRules?booleanDon’t throw an error if the parent of a rule is not found. This is useful to parse partial rule sets (e.g. optimized ones). Deprecated Use the strict: { parentRule: false } option insteadpackages/core/src/engine/index.ts:88
getUnitKey?getUnitKeyExperimental getUnitKey is a function that allows to normalize the unit in the engine.packages/core/src/engine/index.ts:108
logger?LoggerThe logger used to log errors and warnings (default to console).packages/core/src/engine/index.ts:102
strict?boolean | StrictOptionsWhether the engine should trigger an error when it detects an anomaly, or whether it should simply record it and continue. This option can be set globally (true or false) or for specific rules (StrictOptions). Default truepackages/core/src/engine/index.ts:96

Defined in

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